tests: add missing parenthesis
This commit is contained in:
parent
61718cdbaa
commit
fd0be5e5b8
@ -7,13 +7,13 @@ var typeforce = require('typeforce')
|
|||||||
describe('types', function () {
|
describe('types', function () {
|
||||||
describe('BigInt/ECPoint', function () {
|
describe('BigInt/ECPoint', function () {
|
||||||
it('return true for duck types', function () {
|
it('return true for duck types', function () {
|
||||||
assert(types.BigInt(new function BigInteger () {}))
|
assert(types.BigInt(new function BigInteger () {}()))
|
||||||
assert(types.ECPoint(new function Point () {}))
|
assert(types.ECPoint(new function Point () {}()))
|
||||||
})
|
})
|
||||||
|
|
||||||
it('return false for bad types', function () {
|
it('return false for bad types', function () {
|
||||||
assert(!types.BigInt(new function NotABigInteger () {}))
|
assert(!types.BigInt(new function NotABigInteger () {}()))
|
||||||
assert(!types.ECPoint(new function NotAPoint () {}))
|
assert(!types.ECPoint(new function NotAPoint () {}()))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user