mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +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",
|
||||
".gif",
|
||||
".jpg",
|
||||
".jpeg",
|
||||
".met",
|
||||
".odd",
|
||||
".otg",
|
||||
@@ -243,9 +244,11 @@ func (mod Unoconv) Extensions() []string {
|
||||
".swf",
|
||||
".sxd",
|
||||
".sxw",
|
||||
".tif",
|
||||
".tiff",
|
||||
".xhtml",
|
||||
".xpm",
|
||||
".odp",
|
||||
".fodp",
|
||||
".potm",
|
||||
".pot",
|
||||
|
||||
@@ -146,7 +146,7 @@ func TestUnoconv_Extensions(t *testing.T) {
|
||||
extensions := mod.Extensions()
|
||||
|
||||
actual := len(extensions)
|
||||
expect := 73
|
||||
expect := 76
|
||||
|
||||
if actual != expect {
|
||||
t.Errorf("expected %d extensions but got %d", expect, actual)
|
||||
|
||||
Reference in New Issue
Block a user