diff --git a/.changeset/crazy-regions-lay.md b/.changeset/crazy-regions-lay.md new file mode 100644 index 00000000..064f9bc7 --- /dev/null +++ b/.changeset/crazy-regions-lay.md @@ -0,0 +1,5 @@ +--- +"@imgproxy/imgproxy-js-core": patch +--- + +Fix typo in error messages: "then" -> "than" diff --git a/src/utils.ts b/src/utils.ts index 0fd114ba..14324894 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -41,7 +41,7 @@ function getMinNumText( ): string { return `${getParamName(paramName)} value can't be less${ isEqual ? " or equal" : "" - } then ${value}${addInfo ? `. ${addInfo}` : ""}`; + } than ${value}${addInfo ? `. ${addInfo}` : ""}`; } export function guardIsNotNum( diff --git a/tests/optionsBasic/adjust.test.ts b/tests/optionsBasic/adjust.test.ts index d8d64572..760efc7e 100644 --- a/tests/optionsBasic/adjust.test.ts +++ b/tests/optionsBasic/adjust.test.ts @@ -28,7 +28,7 @@ describe("adjust", () => { it("should throw an error if brightness less than -255", () => { expect(() => build({ adjust: { brightness: -300 } })).toThrow( - "adjust.brightness value can't be less then -255" + "adjust.brightness value can't be less than -255" ); }); diff --git a/tests/optionsBasic/autoquality.test.ts b/tests/optionsBasic/autoquality.test.ts index f5645c13..b3e1da4d 100644 --- a/tests/optionsBasic/autoquality.test.ts +++ b/tests/optionsBasic/autoquality.test.ts @@ -37,7 +37,7 @@ describe("autoquality", () => { it("should throw an error if autoquality.target is less than 0", () => { expect(() => build({ autoquality: { target: -1 } })).toThrow( - "autoquality.target value can't be less then 0" + "autoquality.target value can't be less than 0" ); }); @@ -50,7 +50,7 @@ describe("autoquality", () => { it("should throw an error if autoquality.min_quality is less than 0", () => { expect(() => build({ autoquality: { min_quality: -1 } })).toThrow( - "autoquality.min_quality value can't be less then 0" + "autoquality.min_quality value can't be less than 0" ); }); @@ -69,7 +69,7 @@ describe("autoquality", () => { it("should throw an error if autoquality.max_quality is less than 0", () => { expect(() => build({ autoquality: { max_quality: -1 } })).toThrow( - "autoquality.max_quality value can't be less then 0" + "autoquality.max_quality value can't be less than 0" ); }); @@ -89,7 +89,7 @@ describe("autoquality", () => { it("should throw an error if autoquality.allowed_error is less than 0", () => { expect(() => build({ autoquality: { method: "ml", allowed_error: -1 } }) - ).toThrow("autoquality.allowed_error value can't be less then 0"); + ).toThrow("autoquality.allowed_error value can't be less than 0"); }); it("should throw an error if autoquality.allowed_error is more than 1", () => { diff --git a/tests/optionsBasic/backgroundAlpha.test.ts b/tests/optionsBasic/backgroundAlpha.test.ts index a28fa788..2601f720 100644 --- a/tests/optionsBasic/backgroundAlpha.test.ts +++ b/tests/optionsBasic/backgroundAlpha.test.ts @@ -28,7 +28,7 @@ describe("backgroundAlpha", () => { it("should throw an error if background alpha less than 0", () => { expect(() => build({ background_alpha: -0.5 })).toThrow( - "background_alpha option value can't be less then 0" + "background_alpha option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/blur.test.ts b/tests/optionsBasic/blur.test.ts index 57e7257d..3a5cdca6 100644 --- a/tests/optionsBasic/blur.test.ts +++ b/tests/optionsBasic/blur.test.ts @@ -27,7 +27,7 @@ describe("blur", () => { it("should throw an error if blur is less than 0", () => { expect(() => build({ bl: -1 })).toThrow( - "blur option value can't be less then 0" + "blur option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/brightness.test.ts b/tests/optionsBasic/brightness.test.ts index d741a135..61b92b30 100644 --- a/tests/optionsBasic/brightness.test.ts +++ b/tests/optionsBasic/brightness.test.ts @@ -35,7 +35,7 @@ describe("brightness", () => { it("should throw an error if brightness is less than -255", () => { expect(() => build({ brightness: -275 })).toThrow( - "brightness option value can't be less then -255" + "brightness option value can't be less than -255" ); }); diff --git a/tests/optionsBasic/contrast.test.ts b/tests/optionsBasic/contrast.test.ts index 5c02eccb..b26d12e7 100644 --- a/tests/optionsBasic/contrast.test.ts +++ b/tests/optionsBasic/contrast.test.ts @@ -30,7 +30,7 @@ describe("contrast", () => { it("should throw an error if contrast is less than 0", () => { expect(() => build({ contrast: -1 })).toThrow( - "contrast option value can't be less then 0" + "contrast option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/cropAspectRatio.test.ts b/tests/optionsBasic/cropAspectRatio.test.ts index 4319c9f0..95f0eac8 100644 --- a/tests/optionsBasic/cropAspectRatio.test.ts +++ b/tests/optionsBasic/cropAspectRatio.test.ts @@ -43,7 +43,7 @@ describe("cropAspectRatio", () => { expect(() => build({ crop_aspect_ratio: { aspect_ratio: -1 } }) ).toThrowError( - "crop_aspect_ratio.aspect_ratio value can't be less then 0" + "crop_aspect_ratio.aspect_ratio value can't be less than 0" ); }); diff --git a/tests/optionsBasic/dpr.test.ts b/tests/optionsBasic/dpr.test.ts index 5bf36b1c..9ac15c41 100644 --- a/tests/optionsBasic/dpr.test.ts +++ b/tests/optionsBasic/dpr.test.ts @@ -24,7 +24,7 @@ describe("dpr", () => { it("should throw an error if dpr is less than 0", () => { expect(() => build({ dpr: -1 })).toThrow( - "dpr option value can't be less then 0" + "dpr option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/gradient.test.ts b/tests/optionsBasic/gradient.test.ts index 6819373a..ca16257d 100644 --- a/tests/optionsBasic/gradient.test.ts +++ b/tests/optionsBasic/gradient.test.ts @@ -37,7 +37,7 @@ describe("gradient", () => { it("should throw an error if opacity is less than 0", () => { expect(() => build({ gradient: { opacity: -0.5 } })).toThrow( - "gradient.opacity value can't be less then 0" + "gradient.opacity value can't be less than 0" ); }); @@ -104,7 +104,7 @@ describe("gradient", () => { it("should throw an error if start is less than 0", () => { expect(() => build({ gradient: { opacity: 0.5, start: -0.5 } })).toThrow( - "gradient.start value can't be less then 0" + "gradient.start value can't be less than 0" ); }); @@ -123,7 +123,7 @@ describe("gradient", () => { it("should throw an error if stop is less than 0", () => { expect(() => build({ gradient: { opacity: 0.5, stop: -0.5 } })).toThrow( - "gradient.stop value can't be less then 0" + "gradient.stop value can't be less than 0" ); }); diff --git a/tests/optionsBasic/gravity.test.ts b/tests/optionsBasic/gravity.test.ts index 5521f5de..8da3c290 100644 --- a/tests/optionsBasic/gravity.test.ts +++ b/tests/optionsBasic/gravity.test.ts @@ -177,7 +177,7 @@ describe("gravity", () => { y: 0.5, }, }) - ).toThrow(`gravity.x value can't be less then 0`); + ).toThrow(`gravity.x value can't be less than 0`); }); it("should throw an error if x is greater than 1", () => { @@ -201,7 +201,7 @@ describe("gravity", () => { y: -0.5, }, }) - ).toThrow(`gravity.y value can't be less then 0`); + ).toThrow(`gravity.y value can't be less than 0`); }); it("should throw an error if y is greater than 1", () => { diff --git a/tests/optionsBasic/height.test.ts b/tests/optionsBasic/height.test.ts index a86eebc3..50509b9a 100644 --- a/tests/optionsBasic/height.test.ts +++ b/tests/optionsBasic/height.test.ts @@ -30,7 +30,7 @@ describe("height", () => { it("should throw an error if height is less than 0", () => { expect(() => build({ height: -1 })).toThrow( - "height option value can't be less then 0" + "height option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/jpegOptions.test.ts b/tests/optionsBasic/jpegOptions.test.ts index 344845e1..50004092 100644 --- a/tests/optionsBasic/jpegOptions.test.ts +++ b/tests/optionsBasic/jpegOptions.test.ts @@ -75,7 +75,7 @@ describe("jpegOptions", () => { expect(() => // @ts-expect-error: Let's ignore an error (check for users with vanilla js). build({ jpeg_options: { quant_table: -1 } }) - ).toThrow("jpeg_options.quant_table value can't be less then 0"); + ).toThrow("jpeg_options.quant_table value can't be less than 0"); }); it("should throw an error if quant_table is more than 8", () => { diff --git a/tests/optionsBasic/maxAnimationFrameResolution.test.ts b/tests/optionsBasic/maxAnimationFrameResolution.test.ts index edbe7515..591164d2 100644 --- a/tests/optionsBasic/maxAnimationFrameResolution.test.ts +++ b/tests/optionsBasic/maxAnimationFrameResolution.test.ts @@ -32,7 +32,7 @@ describe("maxAnimationFrameResolution", () => { it("should throw an error if max_animation_frame_resolution is less than 0", () => { expect(() => build({ max_animation_frame_resolution: -1 })).toThrow( - "max_animation_frame_resolution option value can't be less then 0" + "max_animation_frame_resolution option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/maxAnimationFrames.test.ts b/tests/optionsBasic/maxAnimationFrames.test.ts index 2c9a6168..696a0ef3 100644 --- a/tests/optionsBasic/maxAnimationFrames.test.ts +++ b/tests/optionsBasic/maxAnimationFrames.test.ts @@ -32,13 +32,13 @@ describe("maxAnimationFrames", () => { it("should throw an error if max_animation_frames is less than 0", () => { expect(() => build({ max_animation_frames: -1 })).toThrow( - "max_animation_frames option value can't be less or equal then 0" + "max_animation_frames option value can't be less or equal than 0" ); }); it("should throw an error if max_animation_frames is 0", () => { expect(() => build({ max_animation_frames: 0 })).toThrow( - "max_animation_frames option value can't be less or equal then 0" + "max_animation_frames option value can't be less or equal than 0" ); }); diff --git a/tests/optionsBasic/maxBytes.test.ts b/tests/optionsBasic/maxBytes.test.ts index 12fa9902..5fff7d43 100644 --- a/tests/optionsBasic/maxBytes.test.ts +++ b/tests/optionsBasic/maxBytes.test.ts @@ -30,7 +30,7 @@ describe("maxBytes", () => { it("should throw an error if max_bytes is less than 0", () => { expect(() => build({ max_bytes: -1 })).toThrow( - "max_bytes option value can't be less then 0" + "max_bytes option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/maxResultDimension.test.ts b/tests/optionsBasic/maxResultDimension.test.ts index dbf3b1c7..0b2445f7 100644 --- a/tests/optionsBasic/maxResultDimension.test.ts +++ b/tests/optionsBasic/maxResultDimension.test.ts @@ -32,7 +32,7 @@ describe("maxResultDimension", () => { it("should throw an error if max_result_dimension is less than 0", () => { expect(() => build({ max_result_dimension: -1 })).toThrow( - "max_result_dimension option value can't be less then 0" + "max_result_dimension option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/minHeight.test.ts b/tests/optionsBasic/minHeight.test.ts index 04c37d89..8d30fa24 100644 --- a/tests/optionsBasic/minHeight.test.ts +++ b/tests/optionsBasic/minHeight.test.ts @@ -30,7 +30,7 @@ describe("min_height", () => { it("should throw an error if min_height is less than 0", () => { expect(() => build({ min_height: -10 })).toThrow( - "min_height option value can't be less then 0" + "min_height option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/minWidth.test.ts b/tests/optionsBasic/minWidth.test.ts index 77e11fcc..ede772dd 100644 --- a/tests/optionsBasic/minWidth.test.ts +++ b/tests/optionsBasic/minWidth.test.ts @@ -30,7 +30,7 @@ describe("min_width", () => { it("should throw an error if min_width is less than 0", () => { expect(() => build({ min_width: -1 })).toThrow( - "min_width option value can't be less then 0" + "min_width option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/padding.test.ts b/tests/optionsBasic/padding.test.ts index 88fec935..16574333 100644 --- a/tests/optionsBasic/padding.test.ts +++ b/tests/optionsBasic/padding.test.ts @@ -30,7 +30,7 @@ describe("padding", () => { it("should throw an error if pd is less than 0", () => { expect(() => build({ pd: -1 })).toThrow( - "padding option value can't be less then 0" + "padding option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/pages.test.ts b/tests/optionsBasic/pages.test.ts index 12775030..6246b404 100644 --- a/tests/optionsBasic/pages.test.ts +++ b/tests/optionsBasic/pages.test.ts @@ -30,7 +30,7 @@ describe("pages", () => { it("should throw an error if pages is less than 1", () => { expect(() => build({ pages: 0 })).toThrow( - "pages option value can't be less then 1" + "pages option value can't be less than 1" ); }); diff --git a/tests/optionsBasic/pixelate.test.ts b/tests/optionsBasic/pixelate.test.ts index 1d4402d8..ef3261d8 100644 --- a/tests/optionsBasic/pixelate.test.ts +++ b/tests/optionsBasic/pixelate.test.ts @@ -30,7 +30,7 @@ describe("pixelate", () => { it("should throw an error if pixelate is less than 0", () => { expect(() => build({ pixelate: -1 })).toThrow( - "pixelate option value can't be less then 0" + "pixelate option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/pngOptions.test.ts b/tests/optionsBasic/pngOptions.test.ts index 92d5525b..c2d4aadf 100644 --- a/tests/optionsBasic/pngOptions.test.ts +++ b/tests/optionsBasic/pngOptions.test.ts @@ -44,7 +44,7 @@ describe("pngOptions", () => { it("should throw an error if png_options.quantization_colors is less than 2", () => { expect(() => build({ png_options: { quantization_colors: 1 } })).toThrow( - "png_options.quantization_colors value can't be less then 2" + "png_options.quantization_colors value can't be less than 2" ); }); diff --git a/tests/optionsBasic/quality.test.ts b/tests/optionsBasic/quality.test.ts index 20620509..53ce0a4e 100644 --- a/tests/optionsBasic/quality.test.ts +++ b/tests/optionsBasic/quality.test.ts @@ -30,7 +30,7 @@ describe("quality", () => { it("should throw an error if quality is less than 0", () => { expect(() => build({ quality: -1 })).toThrow( - "quality option value can't be less then 0" + "quality option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/resize.test.ts b/tests/optionsBasic/resize.test.ts index f0bb8568..8ec9e11a 100644 --- a/tests/optionsBasic/resize.test.ts +++ b/tests/optionsBasic/resize.test.ts @@ -44,13 +44,13 @@ describe("resize", () => { it("should return an error if width is less than 0", () => { expect(() => build({ resize: { width: -15 } })).toThrow( - "resize.width value can't be less then 0" + "resize.width value can't be less than 0" ); }); it("should return an error if height is less than 0", () => { expect(() => build({ resize: { height: -25 } })).toThrow( - "resize.height value can't be less then 0" + "resize.height value can't be less than 0" ); }); diff --git a/tests/optionsBasic/saturation.test.ts b/tests/optionsBasic/saturation.test.ts index 2a293a65..6aad1438 100644 --- a/tests/optionsBasic/saturation.test.ts +++ b/tests/optionsBasic/saturation.test.ts @@ -30,7 +30,7 @@ describe("saturation", () => { it("should throw an error if saturation is less than 0", () => { expect(() => build({ saturation: -1 })).toThrow( - "saturation option value can't be less then 0" + "saturation option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/sharpen.test.ts b/tests/optionsBasic/sharpen.test.ts index bf8ef6ef..39eaa9db 100644 --- a/tests/optionsBasic/sharpen.test.ts +++ b/tests/optionsBasic/sharpen.test.ts @@ -30,7 +30,7 @@ describe("sharpen", () => { it("should throw an error if sharpen is less than 0", () => { expect(() => build({ sharpen: -1 })).toThrow( - "sharpen option value can't be less then 0" + "sharpen option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/size.test.ts b/tests/optionsBasic/size.test.ts index e3852108..448a0211 100644 --- a/tests/optionsBasic/size.test.ts +++ b/tests/optionsBasic/size.test.ts @@ -37,13 +37,13 @@ describe("size", () => { it("should return an error if width is less than 0", () => { expect(() => build({ size: { width: -15 } })).toThrow( - "size.width value can't be less then 0" + "size.width value can't be less than 0" ); }); it("should return an error if height is less than 0", () => { expect(() => build({ size: { height: -25 } })).toThrow( - "size.height value can't be less then 0" + "size.height value can't be less than 0" ); }); diff --git a/tests/optionsBasic/unsharpMasking.test.ts b/tests/optionsBasic/unsharpMasking.test.ts index 8e1610a7..575ca463 100644 --- a/tests/optionsBasic/unsharpMasking.test.ts +++ b/tests/optionsBasic/unsharpMasking.test.ts @@ -30,7 +30,7 @@ describe("unsharpMasking", () => { it("should throw an error if unsharp_masking.weight is not correct", () => { expect(() => build({ unsharp_masking: { weight: -1 } })).toThrow( - "unsharp_masking.weight value can't be less or equal then 0" + "unsharp_masking.weight value can't be less or equal than 0" ); }); @@ -43,10 +43,10 @@ describe("unsharpMasking", () => { it("should throw an error if unsharp_masking.divider is not correct", () => { expect(() => build({ unsharp_masking: { divider: -1 } })).toThrow( - "unsharp_masking.divider value can't be less or equal then 0" + "unsharp_masking.divider value can't be less or equal than 0" ); expect(() => build({ unsharp_masking: { divider: 0 } })).toThrow( - "unsharp_masking.divider value can't be less or equal then 0" + "unsharp_masking.divider value can't be less or equal than 0" ); }); @@ -59,7 +59,7 @@ describe("unsharpMasking", () => { it("should throw an error if unsharp_masking.weight is not greater than zero", () => { expect(() => build({ unsharp_masking: { weight: 0 } })).toThrow( - "unsharp_masking.weight value can't be less or equal then 0" + "unsharp_masking.weight value can't be less or equal than 0" ); }); diff --git a/tests/optionsBasic/watermark.test.ts b/tests/optionsBasic/watermark.test.ts index 3e390c60..ef06b616 100644 --- a/tests/optionsBasic/watermark.test.ts +++ b/tests/optionsBasic/watermark.test.ts @@ -37,7 +37,7 @@ describe("watermark", () => { it("should return throw an error if opacity is less than 0", () => { expect(() => build({ watermark: { opacity: -1 } })).toThrow( - "watermark.opacity value can't be less then 0" + "watermark.opacity value can't be less than 0" ); }); diff --git a/tests/optionsBasic/watermarkShadow.test.ts b/tests/optionsBasic/watermarkShadow.test.ts index b5463aaa..0406daaa 100644 --- a/tests/optionsBasic/watermarkShadow.test.ts +++ b/tests/optionsBasic/watermarkShadow.test.ts @@ -30,7 +30,7 @@ describe("watermarkShadow", () => { it("should throw an error if watermark_shadow option is less than 0", () => { expect(() => build({ watermark_shadow: -1 })).toThrow( - "watermark_shadow option value can't be less then 0" + "watermark_shadow option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/watermarkSize.test.ts b/tests/optionsBasic/watermarkSize.test.ts index 367d6057..e5b6f1a4 100644 --- a/tests/optionsBasic/watermarkSize.test.ts +++ b/tests/optionsBasic/watermarkSize.test.ts @@ -30,7 +30,7 @@ describe("watermarkSize", () => { it("should throw an error if watermark_size.width is less than 0", () => { expect(() => build({ watermark_size: { width: -1 } })).toThrow( - "watermark_size.width value can't be less then 0" + "watermark_size.width value can't be less than 0" ); }); @@ -43,7 +43,7 @@ describe("watermarkSize", () => { it("should throw an error if wms.height is less than 0", () => { expect(() => build({ wms: { height: -1 } })).toThrow( - "watermark_size.height value can't be less then 0" + "watermark_size.height value can't be less than 0" ); }); diff --git a/tests/optionsBasic/width.test.ts b/tests/optionsBasic/width.test.ts index 8f9972fe..782b224d 100644 --- a/tests/optionsBasic/width.test.ts +++ b/tests/optionsBasic/width.test.ts @@ -30,7 +30,7 @@ describe("width", () => { it("should throw an error if width is less than 0", () => { expect(() => build({ width: -1 })).toThrow( - "width option value can't be less then 0" + "width option value can't be less than 0" ); }); diff --git a/tests/optionsBasic/zoom.test.ts b/tests/optionsBasic/zoom.test.ts index a86e378d..21e0e219 100644 --- a/tests/optionsBasic/zoom.test.ts +++ b/tests/optionsBasic/zoom.test.ts @@ -32,7 +32,7 @@ describe("zoom", () => { it("should throw an error if zoom is less than 0", () => { expect(() => build({ z: -1 })).toThrow( - "zoom option value can't be less then 0" + "zoom option value can't be less than 0" ); }); @@ -45,7 +45,7 @@ describe("zoom", () => { it("should throw an error if zoom_x is less than 0", () => { expect(() => build({ zoom: { zoom_x: -1, zoom_y: 0.5 } })).toThrow( - "zoom.zoom_x value can't be less then 0" + "zoom.zoom_x value can't be less than 0" ); }); diff --git a/tests/optionsImageInfo/blurhash.test.ts b/tests/optionsImageInfo/blurhash.test.ts index 9a695be4..18e544f0 100644 --- a/tests/optionsImageInfo/blurhash.test.ts +++ b/tests/optionsImageInfo/blurhash.test.ts @@ -47,7 +47,7 @@ describe("blurhash", () => { it("should throw an error if blurhash.x_components is less than 0", () => { expect(() => build({ blurhash: { x_components: -1, y_components: 3 } }) - ).toThrow("blurhash.x_components value can't be less then 0"); + ).toThrow("blurhash.x_components value can't be less than 0"); }); it("should throw an error if blurhash.x_components is more than 9", () => { @@ -59,7 +59,7 @@ describe("blurhash", () => { it("should throw an error if blurhash.y_components is less than 0", () => { expect(() => build({ blurhash: { x_components: 8, y_components: -4 } }) - ).toThrow("blurhash.y_components value can't be less then 0"); + ).toThrow("blurhash.y_components value can't be less than 0"); }); it("should throw an error if blurhash.y_components is more than 9", () => { diff --git a/tests/optionsImageInfo/palette.test.ts b/tests/optionsImageInfo/palette.test.ts index c483d1a5..3a147f78 100644 --- a/tests/optionsImageInfo/palette.test.ts +++ b/tests/optionsImageInfo/palette.test.ts @@ -33,7 +33,7 @@ describe("palette", () => { it("should throw an error if palette option is -2", () => { expect(() => build({ palette: -2 })).toThrow( - "palette option value can't be less then 0" + "palette option value can't be less than 0" ); }); diff --git a/tests/optionsShared/crop.test.ts b/tests/optionsShared/crop.test.ts index 1fda1297..c2550896 100644 --- a/tests/optionsShared/crop.test.ts +++ b/tests/optionsShared/crop.test.ts @@ -51,13 +51,13 @@ describe("crop", () => { it("should throw an error if width is less than 0", () => { expect(() => build({ crop: { width: -1, height: 150 } })).toThrowError( - "crop.width value can't be less then 0" + "crop.width value can't be less than 0" ); }); it("should throw an error if height is less than 0", () => { expect(() => build({ c: { width: 150, height: -1 } })).toThrowError( - "crop.height value can't be less then 0" + "crop.height value can't be less than 0" ); }); diff --git a/tests/optionsShared/maxSrcFileSize.test.ts b/tests/optionsShared/maxSrcFileSize.test.ts index 357361db..28a08bac 100644 --- a/tests/optionsShared/maxSrcFileSize.test.ts +++ b/tests/optionsShared/maxSrcFileSize.test.ts @@ -30,7 +30,7 @@ describe("maxSrcFileSize", () => { it("should throw an error if max_src_file_size is less than 0", () => { expect(() => build({ max_src_file_size: -1 })).toThrow( - "max_src_file_size option value can't be less then 0" + "max_src_file_size option value can't be less than 0" ); }); diff --git a/tests/optionsShared/maxSrcResolution.test.ts b/tests/optionsShared/maxSrcResolution.test.ts index 987e83a1..01201565 100644 --- a/tests/optionsShared/maxSrcResolution.test.ts +++ b/tests/optionsShared/maxSrcResolution.test.ts @@ -30,13 +30,13 @@ describe("maxSrcResolution", () => { it("should throw an error if max_src_resolution option is less than 0", () => { expect(() => build({ max_src_resolution: -1 })).toThrow( - "max_src_resolution option value can't be less or equal then 0" + "max_src_resolution option value can't be less or equal than 0" ); }); it("should throw an error if max_src_resolution option is 0", () => { expect(() => build({ max_src_resolution: 0 })).toThrow( - "max_src_resolution option value can't be less or equal then 0" + "max_src_resolution option value can't be less or equal than 0" ); }); diff --git a/tests/optionsShared/page.test.ts b/tests/optionsShared/page.test.ts index fa4f57e9..7d23b445 100644 --- a/tests/optionsShared/page.test.ts +++ b/tests/optionsShared/page.test.ts @@ -30,7 +30,7 @@ describe("page", () => { it("should throw an error if page is less than 0", () => { expect(() => build({ page: -1 })).toThrow( - "page option value can't be less then 0" + "page option value can't be less than 0" ); }); diff --git a/tests/optionsShared/videoThumbnailSecond.test.ts b/tests/optionsShared/videoThumbnailSecond.test.ts index 55361433..c5f969bf 100644 --- a/tests/optionsShared/videoThumbnailSecond.test.ts +++ b/tests/optionsShared/videoThumbnailSecond.test.ts @@ -32,7 +32,7 @@ describe("videoThumbnailSecond", () => { it("should throw an error if video_thumbnail_second is less than 1", () => { expect(() => build({ video_thumbnail_second: 0 })).toThrow( - "video_thumbnail_second option value can't be less then 1" + "video_thumbnail_second option value can't be less than 1" ); });