diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-05 01:56:30 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:31 +0800 |
commit | 27d9fba785a5a53550be53b12baf9069bda8d160 (patch) | |
tree | bde34d668e53832dd03dd279992721d56291124b /packages/assert/test | |
parent | e6a783aff803c276392efec93571d24fc96feb6e (diff) | |
download | dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar.gz dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar.bz2 dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar.lz dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar.xz dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.tar.zst dexon-sol-tools-27d9fba785a5a53550be53b12baf9069bda8d160.zip |
Include web3 types via typeRoots and factor out common parts of tsconfig.json
Diffstat (limited to 'packages/assert/test')
-rw-r--r-- | packages/assert/test/assert_test.ts | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/assert/test/assert_test.ts b/packages/assert/test/assert_test.ts index 29344584a..ff337196d 100644 --- a/packages/assert/test/assert_test.ts +++ b/packages/assert/test/assert_test.ts @@ -22,16 +22,6 @@ describe('Assertions', () => { invalidInputs.forEach(input => expect(assert.isBigNumber.bind(assert, variableName, input)).to.throw()); }); }); - describe('#isUndefined', () => { - it('should not throw for valid input', () => { - const validInputs = [undefined]; - validInputs.forEach(input => expect(assert.isUndefined.bind(assert, input, variableName)).to.not.throw()); - }); - it('should throw for invalid input', () => { - const invalidInputs = ['test', 42, false, { random: 'test' }]; - invalidInputs.forEach(input => expect(assert.isUndefined.bind(assert, input, variableName)).to.throw()); - }); - }); describe('#isString', () => { it('should not throw for valid input', () => { const validInputs = ['hello', 'goodbye']; @@ -44,7 +34,7 @@ describe('Assertions', () => { }); describe('#isFunction', () => { it('should not throw for valid input', () => { - const validInputs = [BigNumber, assert.isString.bind(this)]; + const validInputs = [BigNumber, assert.isString]; validInputs.forEach(input => expect(assert.isFunction.bind(assert, variableName, input)).to.not.throw()); }); it('should throw for invalid input', () => { |