mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 12:22:17 +01:00
fixing typos
This commit is contained in:
@@ -46,14 +46,14 @@ func TestWaitTimeoutArg(t *testing.T) {
|
|||||||
v, err = WaitTimeoutArg(r, config)
|
v, err = WaitTimeoutArg(r, config)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is < 0.
|
// value is < 0.
|
||||||
expected = config.DefaultWaitTimeout()
|
expected = config.DefaultWaitTimeout()
|
||||||
r.WithArg(WaitTimeoutArgKey, "-1.0")
|
r.WithArg(WaitTimeoutArgKey, "-1.0")
|
||||||
v, err = WaitTimeoutArg(r, config)
|
v, err = WaitTimeoutArg(r, config)
|
||||||
test.AssertError(t, err)
|
test.AssertError(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is > config.MaximumWaitTimeout().
|
// value is > config.MaximumWaitTimeout().
|
||||||
expected = config.DefaultWaitTimeout()
|
expected = config.DefaultWaitTimeout()
|
||||||
r.WithArg(WaitTimeoutArgKey, "31.0")
|
r.WithArg(WaitTimeoutArgKey, "31.0")
|
||||||
@@ -93,14 +93,14 @@ func TestWaitDelayArg(t *testing.T) {
|
|||||||
v, err = WaitDelayArg(r, config)
|
v, err = WaitDelayArg(r, config)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is < 0.
|
// value is < 0.
|
||||||
expected = defaultValue
|
expected = defaultValue
|
||||||
r.WithArg(WaitDelayArgKey, "-1.0")
|
r.WithArg(WaitDelayArgKey, "-1.0")
|
||||||
v, err = WaitDelayArg(r, config)
|
v, err = WaitDelayArg(r, config)
|
||||||
test.AssertError(t, err)
|
test.AssertError(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is > config.MaximumWaitDelay().
|
// value is > config.MaximumWaitDelay().
|
||||||
expected = defaultValue
|
expected = defaultValue
|
||||||
r.WithArg(WaitDelayArgKey, "31.0")
|
r.WithArg(WaitDelayArgKey, "31.0")
|
||||||
@@ -137,14 +137,14 @@ func TestWebhookURLTimeoutArg(t *testing.T) {
|
|||||||
v, err = WebhookURLTimeoutArg(r, config)
|
v, err = WebhookURLTimeoutArg(r, config)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is < 0.
|
// value is < 0.
|
||||||
expected = config.DefaultWebhookURLTimeout()
|
expected = config.DefaultWebhookURLTimeout()
|
||||||
r.WithArg(WebhookURLTimeoutArgKey, "-1.0")
|
r.WithArg(WebhookURLTimeoutArgKey, "-1.0")
|
||||||
v, err = WebhookURLTimeoutArg(r, config)
|
v, err = WebhookURLTimeoutArg(r, config)
|
||||||
test.AssertError(t, err)
|
test.AssertError(t, err)
|
||||||
assert.Equal(t, expected, v)
|
assert.Equal(t, expected, v)
|
||||||
// shoul not be OK as argument
|
// should not be OK as argument
|
||||||
// value is > config.MaximumWebhookURLTimeout().
|
// value is > config.MaximumWebhookURLTimeout().
|
||||||
expected = config.DefaultWebhookURLTimeout()
|
expected = config.DefaultWebhookURLTimeout()
|
||||||
r.WithArg(WebhookURLTimeoutArgKey, "31.0")
|
r.WithArg(WebhookURLTimeoutArgKey, "31.0")
|
||||||
@@ -184,7 +184,7 @@ func TestPaperSizeArgs(t *testing.T) {
|
|||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, expected, width)
|
assert.Equal(t, expected, width)
|
||||||
assert.Equal(t, expected, height)
|
assert.Equal(t, expected, height)
|
||||||
// shoul not be OK as arguments
|
// should not be OK as arguments
|
||||||
// value are < 0.
|
// value are < 0.
|
||||||
expected = opts.PaperWidth
|
expected = opts.PaperWidth
|
||||||
r.WithArg(PaperWidthArgKey, "-1.0")
|
r.WithArg(PaperWidthArgKey, "-1.0")
|
||||||
@@ -244,7 +244,7 @@ func TestMarginArgs(t *testing.T) {
|
|||||||
assert.Equal(t, expected, bottom)
|
assert.Equal(t, expected, bottom)
|
||||||
assert.Equal(t, expected, left)
|
assert.Equal(t, expected, left)
|
||||||
assert.Equal(t, expected, right)
|
assert.Equal(t, expected, right)
|
||||||
// shoul not be OK as arguments
|
// should not be OK as arguments
|
||||||
// value are < 0.
|
// value are < 0.
|
||||||
expected = opts.MarginTop
|
expected = opts.MarginTop
|
||||||
r.WithArg(MarginTopArgKey, "-1.0")
|
r.WithArg(MarginTopArgKey, "-1.0")
|
||||||
|
|||||||
Reference in New Issue
Block a user