Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Fix flat test grouping typo and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune committed Feb 20, 2022
1 parent 0427927 commit 210ac08
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Test Suite

[![version](https://img.shields.io/badge/release-0.10.0-success)](https://deno.land/x/[email protected].0)
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].0/mod.ts)
[![version](https://img.shields.io/badge/release-0.10.1-success)](https://deno.land/x/[email protected].1)
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected].1/mod.ts)
[![CI](https://github.com/udibo/test_suite/workflows/CI/badge.svg)](https://github.com/udibo/test_suite/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/udibo/test_suite/branch/master/graph/badge.svg?token=EFKGY72AAV)](https://codecov.io/gh/udibo/test_suite)
[![license](https://img.shields.io/github/license/udibo/test_suite)](https://github.com/udibo/test_suite/blob/master/LICENSE)
Expand All @@ -26,9 +26,9 @@ also be imported directly from GitHub using raw content URLs.

```ts
// Import from Deno's third party module registry
import { describe, it } from "https://deno.land/x/[email protected].0/mod.ts";
import { describe, it } from "https://deno.land/x/[email protected].1/mod.ts";
// Import from GitHub
import { describe, it } "https://raw.githubusercontent.com/udibo/test_suite/0.10.0/mod.ts";
import { describe, it } "https://raw.githubusercontent.com/udibo/test_suite/0.10.1/mod.ts";
```
## Usage
Expand All @@ -49,7 +49,7 @@ except they are called before and after each individual test.
Below are some examples of how to use `describe` and `it` in tests.
See
[deno docs](https://doc.deno.land/https/deno.land/x/[email protected].0/mod.ts)
[deno docs](https://doc.deno.land/https/deno.land/x/[email protected].1/mod.ts)
for more information.
### Nested test grouping
Expand All @@ -62,13 +62,13 @@ import {
beforeEach,
describe,
it,
} from "https://deno.land/x/[email protected].0/mod.ts";
} from "https://deno.land/x/[email protected].1/mod.ts";
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
import {
getUser,
resetUsers,
User,
} from "https://deno.land/x/[email protected].0/examples/user.ts";
} from "https://deno.land/x/[email protected].1/examples/user.ts";

describe("user describe", () => {
let user: User;
Expand Down Expand Up @@ -126,13 +126,13 @@ test result: ok. 1 passed (5 steps); 0 failed; 0 ignored; 0 measured; 0 filtered
The example below can be found [here](examples/user_flat_test.ts).

```ts
import { test, TestSuite } from "https://deno.land/x/[email protected].0/mod.ts";
import { describe, it } from "https://deno.land/x/[email protected].1/mod.ts";
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
import {
getUser,
resetUsers,
User,
} from "https://deno.land/x/[email protected].0/example/user.ts";
} from "https://deno.land/x/[email protected].1/example/user.ts";

interface UserContext {
user: User;
Expand Down

0 comments on commit 210ac08

Please sign in to comment.