# @transmute/did-core-tests

> This module provides did method agnostic tests for [did-core](https://www.w3.org/TR/did-core).

Latest version **0.1.1-unstable.15** (published 2021-06-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @transmute/did-core-tests
pnpm add @transmute/did-core-tests
yarn add @transmute/did-core-tests
bun add @transmute/did-core-tests
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1-unstable.15 |
| Published | 2021-06-30 |
| First published | 2021-02-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 350.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Orie Steele |
| Maintainers | or13, gjgd, transmute-ci |

## Links

- npm: https://www.npmjs.com/package/@transmute/did-core-tests
- Repository: https://github.com/transmute-industries/did-core
- Homepage: https://github.com/transmute-industries/did-core/tree/main/packages/did-core-tests
- Issues: https://github.com/transmute-industries/did-core/issues
- npm.io page: https://npm.io/package/@transmute/did-core-tests

## Dependencies (6)

- [ajv](https://npm.io/package/ajv.md) ^6.12.6
- [slugify](https://npm.io/package/slugify.md) ^1.4.6
- [@did-core/did-cbor](https://npm.io/package/@did-core/did-cbor.md) ^0.1.1-unstable.15
- [@did-core/did-json](https://npm.io/package/@did-core/did-json.md) ^0.1.1-unstable.15
- [@did-core/data-model](https://npm.io/package/@did-core/data-model.md) ^0.1.1-unstable.15
- [@did-core/did-ld-json](https://npm.io/package/@did-core/did-ld-json.md) ^0.1.1-unstable.15

## Recent versions

- 0.1.1-unstable.15 (latest) — 2021-06-30
- 0.1.1-unstable.14 — 2021-06-30
- 0.1.1-unstable.13 — 2021-05-31
- 0.1.1-unstable.12 — 2021-05-31
- 0.1.1-unstable.11 — 2021-05-19
- 0.1.1-unstable.10 — 2021-05-08
- 0.1.1-unstable.9 — 2021-02-23
- 0.1.1-unstable.8 — 2021-02-21
- 0.1.1-unstable.7 — 2021-02-21
- 0.1.1-unstable.6 — 2021-02-21
- 0.1.1-unstable.5 — 2021-02-21

## README

# @transmute/did-core-tests

This module provides did method agnostic tests for [did-core](https://www.w3.org/TR/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:

```js
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
```

---
_Source: https://npm.io/package/@transmute/did-core-tests · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
