Skip to content

Tests don't run #2

@austinabell

Description

@austinabell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions