Skip to content

Commit

Permalink
style: automatic fixes for new ESLint rules
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Jan 3, 2022
1 parent be2dec1 commit 8a22b8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/swagger-spec-validator.js
Expand Up @@ -353,15 +353,16 @@ describe('swaggerSpecValidator', () => {
});
});

it('Error for non-string, non-Buffer, non-Readable spec',
() => swaggerSpecValidator.validate(true)
it('Error for non-string, non-Buffer, non-Readable spec', () => {
return swaggerSpecValidator.validate(true)
.then(
neverCalled,
(err) => {
assert.ok(err instanceof TypeError);
assert.ok(/\bspec\b/.test(err.message));
},
));
);
});

it('Error for non-object options', () => {
const testBody = 'swagger';
Expand Down

0 comments on commit 8a22b8e

Please sign in to comment.