Skip to content

Commit

Permalink
Fix tests with newer npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Nov 14, 2023
1 parent a93f2f8 commit 1ed4326
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ describe('checkDependencies', () => {
'Package json3 installed, though it shouldn\'t be',
]);

const depList = fs.readdirSync(`${ packageDir }/${ depsDirName }`);
const depList = fs
.readdirSync(`${ packageDir }/${ depsDirName }`)
.filter(name => name[0] !== '.');
assert.deepEqual(depList,
['jquery'],
`Expected package json3 to be removed; got: ${
Expand Down

0 comments on commit 1ed4326

Please sign in to comment.