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:
remoteexception
2021-09-09 20:07:45 +02:00
committed by GitHub
parent 9529905875
commit 9d27dfb41c
2 changed files with 4 additions and 1 deletions

View File

@@ -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",

View File

@@ -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)