@transmute/did-core-tests

0.1.1-unstable.15 • Public • Published

@transmute/did-core-tests

This module provides did method agnostic tests for did-core.

Generate JSON Test Cases

  1. Click on the "Collapse Sidebar" arrow (left arrow at bottom left of screen).

  2. Click on "ReqList" button at top-right of screen. The list is generated from the spec text.

  3. Copy this script into developer console:

console.log(
  JSON.stringify(
    Array.from(document.querySelectorAll('.reqlist > li')).map(
      (li) => li.textContent
    )
  )
);

Save the file to __fixtures__

Generate Test Files

npm run build

Implement the tests

Copy files from __generated__ to __tests__.

You may need to break down test cases... if its been a long time since the tests were generated... you may need to manually review the differences in __generated__, and make substantial adjustments as spec text changes.

Run Tests

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i @transmute/did-core-tests

Weekly Downloads

0

Version

0.1.1-unstable.15

License

Apache-2.0

Unpacked Size

359 kB

Total Files

118

Last publish

Collaborators

  • ipbyrne
  • or13
  • transmute-ci