diff --git a/test/testlog b/test/testlog index b88ea7796..b2347165e 100644 --- a/test/testlog +++ b/test/testlog @@ -1,4 +1,4 @@ -Test log for: Fri Feb 09 2018 13:19:59 GMT+0200 (GTB Standard Time) +Test log for: Fri Feb 09 2018 13:23:32 GMT+0200 (GTB Standard Time) > 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code > tape test/**/*.test.js | tap-spec @@ -1655,6 +1655,9 @@ Test log for: Fri Feb 09 2018 13:19:59 GMT+0200 (GTB Standard Time) Testing untildify √ untildify is a Function + √ Contains no tildes + √ Does not alter the rest of the path + √ Does not alter paths without tildes Testing unzip @@ -1676,6 +1679,7 @@ Test log for: Fri Feb 09 2018 13:19:59 GMT+0200 (GTB Standard Time) Testing UUIDGeneratorBrowser √ UUIDGeneratorBrowser is a Function + √ Tested 09/02/2018 by @chalarangelo Testing UUIDGeneratorNode @@ -1779,8 +1783,8 @@ Test log for: Fri Feb 09 2018 13:19:59 GMT+0200 (GTB Standard Time) √ Works with multiple promises - total: 877 - passing: 877 + total: 881 + passing: 881 duration: 2.4s diff --git a/test/untildify/untildify.test.js b/test/untildify/untildify.test.js index 3c3b286eb..1e00ff510 100644 --- a/test/untildify/untildify.test.js +++ b/test/untildify/untildify.test.js @@ -5,9 +5,12 @@ test('Testing untildify', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof untildify === 'function', 'untildify is a Function'); + t.true(untildify('~/test/dir/file.f').indexOf('~') === -1, 'Contains no tildes'); + t.equal(untildify('~/test/dir/file.f').slice(-16), '/test/dir/file.f', 'Does not alter the rest of the path'); + t.equal(untildify('test/dir/file.f'), 'test/dir/file.f', 'Does not alter paths without tildes'); //t.deepEqual(untildify(args..), 'Expected'); //t.equal(untildify(args..), 'Expected'); //t.false(untildify(args..), 'Expected'); //t.throws(untildify(args..), 'Expected'); t.end(); -}); \ No newline at end of file +});