diff --git a/pkg/modules/chromium/chromium_test.go b/pkg/modules/chromium/chromium_test.go index 204647bf..38f28c1e 100644 --- a/pkg/modules/chromium/chromium_test.go +++ b/pkg/modules/chromium/chromium_test.go @@ -15,6 +15,15 @@ import ( ) func TestDefaultOptions(t *testing.T) { + actual := DefaultOptions() + notExpect := Options{} + + if reflect.DeepEqual(actual, notExpect) { + t.Errorf("expected %v and got identical %v", actual, notExpect) + } +} + +func TestDefaultPdfOptions(t *testing.T) { actual := DefaultPdfOptions() notExpect := PdfOptions{} @@ -23,6 +32,15 @@ func TestDefaultOptions(t *testing.T) { } } +func TestDefaultScreenshotOptions(t *testing.T) { + actual := DefaultScreenshotOptions() + notExpect := ScreenshotOptions{} + + if reflect.DeepEqual(actual, notExpect) { + t.Errorf("expected %v and got identical %v", actual, notExpect) + } +} + func TestChromium_Descriptor(t *testing.T) { descriptor := new(Chromium).Descriptor()