Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreswebs/describe
A simple description formatter for Deno unit tests
https://github.com/andreswebs/describe
deno deno-module test-driven-development testing-tools typescript
Last synced: 4 months ago
JSON representation
A simple description formatter for Deno unit tests
- Host: GitHub
- URL: https://github.com/andreswebs/describe
- Owner: andreswebs
- License: unlicense
- Created: 2020-12-13T01:47:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T10:29:09.000Z (over 1 year ago)
- Last Synced: 2023-12-19T12:49:30.773Z (about 1 year ago)
- Topics: deno, deno-module, test-driven-development, testing-tools, typescript
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# describe
A simple description formatter for Deno unit tests.
## Usage
```typescript
import { assert } from "https://deno.land/std/testing/asserts.ts";import { description } from "https://deno.land/x/describe/mod.ts";
Deno.test(description({
name: "what is being tested",
given: "under such conditions",
should: "do as expected"
}), () => {
assert(true);
});
```## Test
```sh
deno test mod.test.ts
```## Authors
**Andre Silva** - [andreswebs](https://github.com/andreswebs)
## License
This project is licensed under the [Unlicense](UNLICENSE.md).