Skip to content

Commit 97ecb31

Browse files
committed
tests: add type tests
1 parent e94ec00 commit 97ecb31

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/types.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* global describe, it */
2+
3+
var assert = require('assert')
4+
var types = require('../src/types')
5+
6+
describe('types', function () {
7+
describe('ECCurve/ECPoint/BigInt', function () {
8+
it('return true for duck types', function () {
9+
assert(types.quacksLike('BigInteger', function BigInteger () {}))
10+
assert(types.quacksLike('Curve', function Curve () {}))
11+
assert(types.quacksLike('Point', function Point () {}))
12+
})
13+
})
14+
})

0 commit comments

Comments
 (0)