Skip to content

Commit

Permalink
test: await updated preset interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Oct 1, 2023
1 parent 2c84c4a commit e080e22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { parserPreset, rules } = require('.');
const types = rules['type-enum'][2];

const commitLint = async (message) => {
const preset = await require(parserPreset);
const preset = await await require(parserPreset)();
return lint(message, rules, { ...preset });
};

Expand Down Expand Up @@ -213,7 +213,6 @@ test('valid messages', async () => {
);

validInputs.forEach((result) => {
if (!result.valid) console.debug(result);
expect(result.valid).toBe(true);
expect(result.errors).toEqual([]);
expect(result.warnings).toEqual([]);
Expand Down

0 comments on commit e080e22

Please sign in to comment.