Tests for untildify

This commit is contained in:
Angelos Chalaris
2018-02-09 13:23:46 +02:00
parent 2150ef1337
commit 11fd6822c7
2 changed files with 11 additions and 4 deletions

View File

@ -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 > 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
> tape test/**/*.test.js | tap-spec > 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 Testing untildify
√ untildify is a Function √ untildify is a Function
√ Contains no tildes
√ Does not alter the rest of the path
√ Does not alter paths without tildes
Testing unzip Testing unzip
@ -1676,6 +1679,7 @@ Test log for: Fri Feb 09 2018 13:19:59 GMT+0200 (GTB Standard Time)
Testing UUIDGeneratorBrowser Testing UUIDGeneratorBrowser
√ UUIDGeneratorBrowser is a Function √ UUIDGeneratorBrowser is a Function
√ Tested 09/02/2018 by @chalarangelo
Testing UUIDGeneratorNode 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 √ Works with multiple promises
total: 877 total: 881
passing: 877 passing: 881
duration: 2.4s duration: 2.4s

View File

@ -5,6 +5,9 @@ test('Testing untildify', (t) => {
//For more information on all the methods supported by tape //For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape //Please go to https://github.com/substack/tape
t.true(typeof untildify === 'function', 'untildify is a Function'); 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.deepEqual(untildify(args..), 'Expected');
//t.equal(untildify(args..), 'Expected'); //t.equal(untildify(args..), 'Expected');
//t.false(untildify(args..), 'Expected'); //t.false(untildify(args..), 'Expected');