aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert/test/assert_test.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-11 02:35:37 +0800
committerGitHub <noreply@github.com>2018-01-11 02:35:37 +0800
commitde943c5f305402bc64a6b3273c59669faa62a60d (patch)
tree936eae17521984e5ccc28057973461e707322326 /packages/assert/test/assert_test.ts
parente6a783aff803c276392efec93571d24fc96feb6e (diff)
parente34b0af25133629ad4c177c4d7d5050bd6ac19b8 (diff)
downloaddexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.gz
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.bz2
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.lz
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.xz
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.zst
dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.zip
Merge pull request #307 from 0xProject/feature/web3-type-roots
Base tsconfig.json
Diffstat (limited to 'packages/assert/test/assert_test.ts')
-rw-r--r--packages/assert/test/assert_test.ts12
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', () => {