mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 20:32:13 +01:00
chore(chromium): add missing tests on default options
This commit is contained in:
@@ -15,6 +15,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestDefaultOptions(t *testing.T) {
|
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()
|
actual := DefaultPdfOptions()
|
||||||
notExpect := PdfOptions{}
|
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) {
|
func TestChromium_Descriptor(t *testing.T) {
|
||||||
descriptor := new(Chromium).Descriptor()
|
descriptor := new(Chromium).Descriptor()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user