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

Commit d187df8

Browse files
authored
Merge pull request #14 from udibo/dev
Update dependencies
2 parents c61f094 + 81b42b9 commit d187df8

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Test Suite
22

3-
[![version](https://img.shields.io/badge/release-0.9.3-success)](https://deno.land/x/test_suite@0.9.3)
4-
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/test_suite@0.9.3/mod.ts)
3+
[![version](https://img.shields.io/badge/release-0.9.4-success)](https://deno.land/x/test_suite@0.9.4)
4+
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/test_suite@0.9.4/mod.ts)
55
[![CI](https://github.com/udibo/test_suite/workflows/CI/badge.svg)](https://github.com/udibo/test_suite/actions?query=workflow%3ACI)
66
[![codecov](https://codecov.io/gh/udibo/test_suite/branch/master/graph/badge.svg?token=EFKGY72AAV)](https://codecov.io/gh/udibo/test_suite)
77
[![license](https://img.shields.io/github/license/udibo/test_suite)](https://github.com/udibo/test_suite/blob/master/LICENSE)
@@ -26,16 +26,16 @@ also be imported directly from GitHub using raw content URLs.
2626

2727
```ts
2828
// Import from Deno's third party module registry
29-
import { TestSuite, test } from "https://deno.land/x/test_suite@0.9.3/mod.ts";
29+
import { TestSuite, test } from "https://deno.land/x/test_suite@0.9.4/mod.ts";
3030
// Import from GitHub
31-
import { TestSuite, test } "https://raw.githubusercontent.com/udibo/test_suite/0.9.3/mod.ts";
31+
import { TestSuite, test } "https://raw.githubusercontent.com/udibo/test_suite/0.9.4/mod.ts";
3232
```
3333
3434
## Usage
3535
3636
Below are some examples of how to use TestSuite and test in tests.
3737
38-
See [deno docs](https://doc.deno.land/https/deno.land/x/test_suite@0.9.3/mod.ts)
38+
See [deno docs](https://doc.deno.land/https/deno.land/x/test_suite@0.9.4/mod.ts)
3939
for more information.
4040
4141
### TestSuite
@@ -56,13 +56,13 @@ except they are called before and after each individual test.
5656
The example test below can be found in the example directory.
5757
5858
```ts
59-
import { test, TestSuite } from "https://deno.land/x/test_suite@0.9.3/mod.ts";
60-
import { assertEquals } from "https://deno.land/std@0.117.0/testing/asserts.ts";
59+
import { test, TestSuite } from "https://deno.land/x/test_suite@0.9.4/mod.ts";
60+
import { assertEquals } from "https://deno.land/std@0.120.0/testing/asserts.ts";
6161
import {
6262
getUser,
6363
resetUsers,
6464
User,
65-
} from "https://deno.land/x/test_suite@0.9.3/example/user.ts";
65+
} from "https://deno.land/x/test_suite@0.9.4/example/user.ts";
6666

6767
interface UserSuiteContext {
6868
user: User;
@@ -139,13 +139,13 @@ import {
139139
beforeEach,
140140
describe,
141141
it,
142-
} from "https://deno.land/x/test_suite@0.9.3/mod.ts";
143-
import { assertEquals } from "https://deno.land/std@0.117.0/testing/asserts.ts";
142+
} from "https://deno.land/x/test_suite@0.9.4/mod.ts";
143+
import { assertEquals } from "https://deno.land/std@0.120.0/testing/asserts.ts";
144144
import {
145145
getUser,
146146
resetUsers,
147147
User,
148-
} from "https://deno.land/x/test_suite@0.9.3/examples/user.ts";
148+
} from "https://deno.land/x/test_suite@0.9.4/examples/user.ts";
149149

150150
describe("user describe", () => {
151151
let user: User;

deps.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export { delay } from "https://deno.land/std@0.114.0/async/delay.ts";
1+
export { delay } from "https://deno.land/std@0.120.0/async/delay.ts";
22
export {
33
assert,
44
assertEquals,
55
AssertionError,
66
assertObjectMatch,
7+
assertRejects,
78
assertThrows,
8-
assertThrowsAsync,
9-
} from "https://deno.land/std@0.114.0/testing/asserts.ts";
9+
} from "https://deno.land/std@0.120.0/testing/asserts.ts";
1010

1111
export { Vector } from "https://deno.land/x/collections@0.11.2/vector.ts";

test_deps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export { spy, stub } from "https://deno.land/x/mock@0.12.0/mod.ts";
1+
export { spy, stub } from "https://deno.land/x/mock@0.12.2/mod.ts";
22
export type {
33
Spy,
44
SpyCall,
55
Stub,
6-
} from "https://deno.land/x/mock@0.12.0/mod.ts";
6+
} from "https://deno.land/x/mock@0.12.2/mod.ts";

test_suite_test.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
assertEquals,
33
AssertionError,
44
assertObjectMatch,
5+
assertRejects,
56
assertThrows,
6-
assertThrowsAsync,
77
delay,
88
} from "./deps.ts";
99
import { Spy, spy, Stub, stub } from "./test_deps.ts";
@@ -970,7 +970,7 @@ Deno.test("top level suite beforeAll/afterAll hooks leaking async ops", async ()
970970
assertEquals(testSpys[0].calls.length, 1);
971971
assertEquals(testSpys[1].calls.length, 0);
972972

973-
await assertThrowsAsync(
973+
await assertRejects(
974974
async () => await registerTestStub.calls[1].args[0].fn(),
975975
AssertionError,
976976
"Test suite is leaking async ops.",
@@ -1086,7 +1086,7 @@ Deno.test("top level suite beforeEach/afterEach hooks leaking async ops", async
10861086
assertEquals(testSpys[0].calls.length, 0);
10871087
assertEquals(testSpys[1].calls.length, 0);
10881088

1089-
await assertThrowsAsync(
1089+
await assertRejects(
10901090
async () => await registerTestStub.calls[0].args[0].fn(),
10911091
AssertionError,
10921092
"Test case is leaking async ops.",
@@ -1104,7 +1104,7 @@ Deno.test("top level suite beforeEach/afterEach hooks leaking async ops", async
11041104
// https://github.com/denoland/deno/issues/8965
11051105
if (timer !== -1) clearTimeout(timer);
11061106

1107-
await assertThrowsAsync(
1107+
await assertRejects(
11081108
async () => await registerTestStub.calls[1].args[0].fn(),
11091109
AssertionError,
11101110
"Test case is leaking async ops.",
@@ -1247,7 +1247,7 @@ Deno.test("top level suite tests leaking async ops", async () => {
12471247
assertEquals(testSpys[0].calls.length, 0);
12481248
assertEquals(testSpys[1].calls.length, 0);
12491249

1250-
await assertThrowsAsync(
1250+
await assertRejects(
12511251
async () => await registerTestStub.calls[0].args[0].fn(),
12521252
AssertionError,
12531253
"Test case is leaking async ops.",
@@ -1266,7 +1266,7 @@ Deno.test("top level suite tests leaking async ops", async () => {
12661266
// https://github.com/denoland/deno/issues/8965
12671267
if (timer !== -1) clearTimeout(timer);
12681268

1269-
await assertThrowsAsync(
1269+
await assertRejects(
12701270
async () => await registerTestStub.calls[1].args[0].fn(),
12711271
AssertionError,
12721272
"Test case is leaking async ops.",
@@ -1285,7 +1285,7 @@ Deno.test("top level suite tests leaking async ops", async () => {
12851285
// https://github.com/denoland/deno/issues/8965
12861286
if (timer !== -1) clearTimeout(timer);
12871287

1288-
await assertThrowsAsync(
1288+
await assertRejects(
12891289
async () => await registerTestStub.calls[2].args[0].fn(),
12901290
AssertionError,
12911291
"Test case is leaking async ops.",
@@ -1409,7 +1409,7 @@ Deno.test("top level suite beforeAll/afterAll hooks leaking resources", async ()
14091409
assertEquals(testSpys[0].calls.length, 1);
14101410
assertEquals(testSpys[1].calls.length, 0);
14111411

1412-
await assertThrowsAsync(
1412+
await assertRejects(
14131413
async () => await registerTestStub.calls[1].args[0].fn(),
14141414
AssertionError,
14151415
"Test suite is leaking resources.",
@@ -1520,7 +1520,7 @@ Deno.test("top level suite beforeEach/afterEach hooks leaking resources", async
15201520
assertEquals(testSpys[0].calls.length, 0);
15211521
assertEquals(testSpys[1].calls.length, 0);
15221522

1523-
await assertThrowsAsync(
1523+
await assertRejects(
15241524
async () => await registerTestStub.calls[0].args[0].fn(),
15251525
AssertionError,
15261526
"Test case is leaking resources.",
@@ -1532,7 +1532,7 @@ Deno.test("top level suite beforeEach/afterEach hooks leaking resources", async
15321532
assertEquals(testSpys[0].calls.length, 1);
15331533
assertEquals(testSpys[1].calls.length, 0);
15341534

1535-
await assertThrowsAsync(
1535+
await assertRejects(
15361536
async () => await registerTestStub.calls[1].args[0].fn(),
15371537
AssertionError,
15381538
"Test case is leaking resources.",
@@ -1663,7 +1663,7 @@ Deno.test("top level suite tests leaking resources", async () => {
16631663
assertEquals(testSpys[0].calls.length, 0);
16641664
assertEquals(testSpys[1].calls.length, 0);
16651665

1666-
await assertThrowsAsync(
1666+
await assertRejects(
16671667
async () => await registerTestStub.calls[0].args[0].fn(),
16681668
AssertionError,
16691669
"Test case is leaking resources.",
@@ -1676,7 +1676,7 @@ Deno.test("top level suite tests leaking resources", async () => {
16761676
assertEquals(testSpys[1].calls.length, 0);
16771677
assertEquals(testSpys[2].calls.length, 0);
16781678

1679-
await assertThrowsAsync(
1679+
await assertRejects(
16801680
async () => await registerTestStub.calls[1].args[0].fn(),
16811681
AssertionError,
16821682
"Test case is leaking resources.",
@@ -1689,7 +1689,7 @@ Deno.test("top level suite tests leaking resources", async () => {
16891689
assertEquals(testSpys[1].calls.length, 1);
16901690
assertEquals(testSpys[2].calls.length, 0);
16911691

1692-
await assertThrowsAsync(
1692+
await assertRejects(
16931693
async () => await registerTestStub.calls[2].args[0].fn(),
16941694
AssertionError,
16951695
"Test case is leaking resources.",

0 commit comments

Comments
 (0)