# k8w-test

> KUnit ---

Latest version **1.0.1** (published 2018-07-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install k8w-test
pnpm add k8w-test
yarn add k8w-test
bun add k8w-test
```

## 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 | 2018-07-03 |
| First published | 2018-07-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 23.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | k8w |

## Links

- npm: https://www.npmjs.com/package/k8w-test
- Repository: https://github.com/k8w/kunit
- Homepage: https://github.com/k8w/kunit#readme
- Issues: https://github.com/k8w/kunit/issues
- npm.io page: https://npm.io/package/k8w-test

## Dependencies (1)

- [k8w-extend-native](https://npm.io/package/k8w-extend-native.md) ^0.2.0

## Recent versions

- 1.0.1 (latest) — 2018-07-03

## README

KUnit
---

一个可以用于微信小程序和浏览器的单元测试框架

### 例子

```ts
import { test } from '../index';
import KUnit from '../index';
import { assert } from 'chai';

async function wait(ms: number) {
    return new Promise(rs => {
        setTimeout(() => { rs() }, ms);
    })
}

test('Test A', async function () {
    console.log('aaa')
    assert.equal(1, 1);

    await test('A1', async function () {
        console.log('aaa1')
    })

    await test('A2', async function () {
        console.log('aaa2')
    })
})

test('Test B', function () {
    console.log('bbb')
    assert.equal(1, 2);
})

KUnit.instance.runAll()
```

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