From 362f71aef0adb04230bc2f67dfdd7016f4477133 Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Wed, 19 Apr 2017 14:50:38 -0400 Subject: [PATCH] `pack` test: Use path.join() to create nested path --- __tests__/commands/pack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/commands/pack.js b/__tests__/commands/pack.js index 8cdd891704..72d0059e3b 100644 --- a/__tests__/commands/pack.js +++ b/__tests__/commands/pack.js @@ -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); });