Skip to content

Commit

Permalink
pack test: Use path.join() to create nested path
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfrazier committed Apr 19, 2017
1 parent ecf172b commit 362f71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test.concurrent('pack should inlude all files listed in the files array', (): Pr
path.join(cwd, 'files-include-v1.0.0.tgz'),
path.join(cwd, 'files-include-v1.0.0'),
);
const expected = ['index.js', 'a.js', 'b.js', 'dir/nested.js'];
const expected = ['index.js', 'a.js', 'b.js', path.join('dir', 'nested.js')];
expected.forEach((filename) => {
expect(files.indexOf(filename)).toBeGreaterThanOrEqual(0);
});
Expand Down

0 comments on commit 362f71a

Please sign in to comment.