From b3f4a02658c191939606c34ff49cacaa8c6266be Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Sun, 30 Jun 2024 20:40:40 +0200 Subject: [PATCH] chore(chromium): add missing tests on default options --- pkg/modules/chromium/chromium_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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()