diff --git a/cli_test.go b/cli_test.go index 5e02ec2..2a7c648 100644 --- a/cli_test.go +++ b/cli_test.go @@ -40,12 +40,12 @@ func TestCLI_Fonts(t *testing.T) { func TestCLI_FontsWithOptions(t *testing.T) { caller := typst.CLI{} - result, err := caller.Fonts(&typst.OptionsFonts{IgnoreSystemFonts: true, IgnoreEmbeddedFonts: true}) + result, err := caller.Fonts(&typst.OptionsFonts{IgnoreSystemFonts: true}) if err != nil { t.Fatalf("Failed to get available fonts: %v.", err) } - if len(result) != 0 { - t.Errorf("Unexpected number of detected fonts. Got %d, want %d.", len(result), 0) + if len(result) != 4 { + t.Errorf("Unexpected number of detected fonts. Got %d, want %d.", len(result), 4) } } diff --git a/docker_test.go b/docker_test.go index 93c15d7..b7b77b4 100644 --- a/docker_test.go +++ b/docker_test.go @@ -39,12 +39,12 @@ func TestDocker_Fonts(t *testing.T) { func TestDocker_FontsWithOptions(t *testing.T) { caller := typst.Docker{} - result, err := caller.Fonts(&typst.OptionsFonts{IgnoreSystemFonts: true, IgnoreEmbeddedFonts: true}) + result, err := caller.Fonts(&typst.OptionsFonts{IgnoreSystemFonts: true}) if err != nil { t.Fatalf("Failed to get available fonts: %v.", err) } - if len(result) != 0 { - t.Errorf("Unexpected number of detected fonts. Got %d, want %d.", len(result), 0) + if len(result) != 4 { + t.Errorf("Unexpected number of detected fonts. Got %d, want %d.", len(result), 4) } }