We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e94ec00 commit 97ecb31Copy full SHA for 97ecb31
test/types.js
@@ -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