From c10a326d0d5b3c8d8c24d0cc274c5c14e56cfe0f Mon Sep 17 00:00:00 2001 From: Sam Verschueren Date: Mon, 4 Jan 2016 08:15:54 +0100 Subject: [PATCH] tweak tests --- test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.js b/test.js index a8d698d..79a8a0b 100644 --- a/test.js +++ b/test.js @@ -28,7 +28,7 @@ test('cwd', async t => { await execa('./cli.js', ['hello.js', 'dest', '--cwd', path.join(t.context.tmp, 'cwd')]); - t.is(read(t.context.tmp, 'cwd/hello.js'), read(path.join(t.context.tmp, 'cwd/dest/hello.js'))); + t.is(read(t.context.tmp, 'cwd/hello.js'), read(t.context.tmp, 'cwd/dest/hello.js')); }); test('keep path structure with flag "--parents"', async t => { @@ -38,7 +38,7 @@ test('keep path structure with flag "--parents"', async t => { await execa('./cli.js', [path.join(t.context.tmp, 'cwd/hello.js'), t.context.tmp, '--parents']); - t.is(read(t.context.tmp, 'cwd/hello.js'), read(path.join(t.context.tmp, t.context.tmp, 'cwd/hello.js'))); + t.is(read(t.context.tmp, 'cwd/hello.js'), read(t.context.tmp, t.context.tmp, 'cwd/hello.js')); }); test('rename filenames but not filepaths', async t => { @@ -48,7 +48,7 @@ test('rename filenames but not filepaths', async t => { await execa('./cli.js', [path.join(t.context.tmp, 'hello.js'), path.join(t.context.tmp, 'dest'), '--rename=hi.js']); - t.is(read(t.context.tmp, 'hello.js'), read(path.join(t.context.tmp, 'dest/hi.js'))); + t.is(read(t.context.tmp, 'hello.js'), read(t.context.tmp, 'dest/hi.js')); }); test('overwrite files by default', async t => {