# nkey-testsuite

> Testsuite for the nkey implementations

Latest version **1.0.1** (published 2022-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install nkey-testsuite
pnpm add nkey-testsuite
yarn add nkey-testsuite
bun add nkey-testsuite
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-04-14 |
| First published | 2022-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Heidegger |
| Maintainers | leichtgewicht |

## Links

- npm: https://www.npmjs.com/package/nkey-testsuite
- Repository: https://github.com/tradle/nkey-monorepo
- Homepage: https://github.com/tradle/nkey-monorepo/tree/master/packages/nkey-testsuite#readme
- Issues: https://github.com/tradle/nkey-monorepo/issues
- npm.io page: https://npm.io/package/nkey-testsuite

## Dependencies (2)

- [tape](https://npm.io/package/tape.md) ^5.5.2
- [@tradle/typeforce](https://npm.io/package/@tradle/typeforce.md) ^2.2.1

## Recent versions

- 1.0.1 (latest) — 2022-04-14

## README

# `nkey-testsuite`

> [tape][] Runs the [nkey][] testsuite for a given implementation.

[tape]: https://npmjs.com/package/tape
[nkey]: https://npmjs.com/package/nkey

## Usage

1. Add `nkey-testsuite` to the dev dependencies
2. Create a `test.js` file like below
3. Run the `test.js` file using `node test.js`
4. Prosper!

```js
// Straight forward implementation
require('nkey-testsuite')(require('.'))

// Integrated use
const tape = require('tape')
tape('suite', t => {
  // With the "t" option the tests get run as subtests
  require('nkey-testsuite')(require('.'), { t })
})

// Add variant flag to distinguish between implementations
require('nkey-testsuite')(require('./a'), { variant: 'a' })
require('nkey-testsuite')(require('./b'), { variant: 'b' })

// Get informed about the ned
require('nkey-testsuite')(require('.'), () => {
  console.log('done!')
})
```

## License

[MIT][./LICENSE]

---
_Source: https://npm.io/package/nkey-testsuite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
