mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 21:22:15 +01:00
fix: add more supported file extensions for unovonv (#340)
* Add supported file extensions for unovonv * Fix expected file extensions length Co-authored-by: Jana Storch <jana.storch@dpdhl.com>
This commit is contained in:
@@ -229,6 +229,7 @@ func (mod Unoconv) Extensions() []string {
|
|||||||
".fodg",
|
".fodg",
|
||||||
".gif",
|
".gif",
|
||||||
".jpg",
|
".jpg",
|
||||||
|
".jpeg",
|
||||||
".met",
|
".met",
|
||||||
".odd",
|
".odd",
|
||||||
".otg",
|
".otg",
|
||||||
@@ -243,9 +244,11 @@ func (mod Unoconv) Extensions() []string {
|
|||||||
".swf",
|
".swf",
|
||||||
".sxd",
|
".sxd",
|
||||||
".sxw",
|
".sxw",
|
||||||
|
".tif",
|
||||||
".tiff",
|
".tiff",
|
||||||
".xhtml",
|
".xhtml",
|
||||||
".xpm",
|
".xpm",
|
||||||
|
".odp",
|
||||||
".fodp",
|
".fodp",
|
||||||
".potm",
|
".potm",
|
||||||
".pot",
|
".pot",
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ func TestUnoconv_Extensions(t *testing.T) {
|
|||||||
extensions := mod.Extensions()
|
extensions := mod.Extensions()
|
||||||
|
|
||||||
actual := len(extensions)
|
actual := len(extensions)
|
||||||
expect := 73
|
expect := 76
|
||||||
|
|
||||||
if actual != expect {
|
if actual != expect {
|
||||||
t.Errorf("expected %d extensions but got %d", expect, actual)
|
t.Errorf("expected %d extensions but got %d", expect, actual)
|
||||||
|
|||||||
Reference in New Issue
Block a user