testing/README.md

35 lines
764 B
Markdown

# typescript/testing
[![Build Status](https://thunderk.visualstudio.com/typescript/_apis/build/status/testing?branchName=master)](https://dev.azure.com/thunderk/typescript/_build?pipelineNameFilter=testing)
## About
Testing utilities for Deno, trying to stick to jasmine/jest syntax for easy
porting.
## Import
In deno:
```typescript
import { describe, expect, it } from "https://js.thunderk.net/testing/mod.ts";
```
## Use
Syntax is similar to [Jest](https://jestjs.io), and tries to be mostly
compatible.
```typescript
describe("a module", () => {
it("does something", () => {
expect(5).toBeGreatherThan(4);
});
};
```
## Credits
- Embeds a slighly adapted version of [expect](https://github.com/allain/expect)
library from Allain Lalonde