tests: add type tests
This commit is contained in:
parent
e94ec00919
commit
97ecb313c2
14
test/types.js
Normal file
14
test/types.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* global describe, it */
|
||||||
|
|
||||||
|
var assert = require('assert')
|
||||||
|
var types = require('../src/types')
|
||||||
|
|
||||||
|
describe('types', function () {
|
||||||
|
describe('ECCurve/ECPoint/BigInt', function () {
|
||||||
|
it('return true for duck types', function () {
|
||||||
|
assert(types.quacksLike('BigInteger', function BigInteger () {}))
|
||||||
|
assert(types.quacksLike('Curve', function Curve () {}))
|
||||||
|
assert(types.quacksLike('Point', function Point () {}))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue
Block a user