Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests don't run #2

Open
austinabell opened this issue Nov 12, 2019 · 0 comments
Open

Tests don't run #2

austinabell opened this issue Nov 12, 2019 · 0 comments

Comments

@austinabell
Copy link

Spec test vectors are not actually run, tested with multiple node versions and on another machine

> [email protected] test /Users/austinabell/development/github.com/CarlBeek/js-bls-key-management
> jest

 PASS  packages/key_derivation/test/tree_kdf_test.ts
  ✓ derive_master_SK() (1ms)
  ✓ derive_child_SK() (1ms)

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        0.791s, estimated 2s
Ran all test suites.
/Users/austinabell/development/github.com/CarlBeek/js-bls-key-management/packages/key_derivation/test/tree_kdf_test.ts:34
            const test_parent_SK = new sjcl_1.default.bn(test['master_SK']);
                                   ^

TypeError: sjcl_1.default.bn is not a constructor
    at test_vectors.forEach (/Users/austinabell/development/github.com/CarlBeek/js-bls-key-management/packages/key_derivation/test/tree_kdf_test.ts:34:36)
    at Array.forEach (<anonymous>)
    at fs_1.default.readFile (/Users/austinabell/development/github.com/CarlBeek/js-bls-key-management/packages/key_derivation/test/tree_kdf_test.ts:33:22)
    at /Users/austinabell/development/github.com/CarlBeek/js-bls-key-management/node_modules/graceful-fs/graceful-fs.js:115:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
npm ERR! Test failed.  See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant