mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Linter: apply all recommended biome settings
Enforces previously-skipped useArrowFunction check
This commit is contained in:
@@ -8,8 +8,8 @@ const { describe, it } = require('node:test');
|
||||
const assert = require('node:assert');
|
||||
const fixtures = require('../fixtures');
|
||||
|
||||
describe('Modulate', function () {
|
||||
describe('Invalid options', function () {
|
||||
describe('Modulate', () => {
|
||||
describe('Invalid options', () => {
|
||||
[
|
||||
null,
|
||||
undefined,
|
||||
@@ -25,9 +25,9 @@ describe('Modulate', function () {
|
||||
{ hue: null },
|
||||
{ lightness: '+50' },
|
||||
{ lightness: null }
|
||||
].forEach(function (options) {
|
||||
it('should throw', function () {
|
||||
assert.throws(function () {
|
||||
].forEach((options) => {
|
||||
it('should throw', () => {
|
||||
assert.throws(() => {
|
||||
sharp(fixtures.inputJpg).modulate(options);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user