Skip to content

Commit 4730cf7

Browse files
committed
Use jsr:@std for testing.
1 parent 2803aef commit 4730cf7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+216
-349
lines changed

core/deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"imports": {
33
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
4-
"testing/": "https://deno.land/[email protected]/testing/"
4+
"@std/assert": "jsr:@std/[email protected]",
5+
"@std/testing": "jsr:@std/testing@^1.0.0"
56
},
67
"fmt": {
78
"include": [

core/deno.lock

Lines changed: 19 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/test/cipherSuite.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals, assertRejects, assertThrows } from "testing/asserts.ts";
2-
import { describe, it } from "testing/bdd.ts";
1+
import { assertEquals, assertRejects, assertThrows } from "@std/assert";
2+
import { describe, it } from "@std/testing/bdd";
33

44
import {
55
AeadId,

core/test/runtimes/bun/core.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "testing/asserts.ts";
2-
import { describe, it } from "testing/bdd.ts";
1+
import { assertEquals } from "@std/assert";
2+
import { describe, it } from "@std/testing/bdd";
33

44
describe("Bun", () => {
55
describe("GET /test?kem=0x0010", () => {

core/test/runtimes/cloudflare/core.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "testing/asserts.ts";
2-
import { describe, it } from "testing/bdd.ts";
1+
import { assertEquals } from "@std/assert";
2+
import { describe, it } from "@std/testing/bdd";
33

44
describe("Cloudflare Workers", () => {
55
describe("GET /test?kem=0x0010", () => {

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"imports": {
33
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
4-
"testing/": "https://deno.land/[email protected]/testing/"
4+
"@std/assert": "jsr:@std/[email protected]",
5+
"@std/testing": "jsr:@std/testing@^1.0.0"
56
},
67
"fmt": {
78
"include": [

deno.lock

Lines changed: 19 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/bignum.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { assertEquals, assertThrows } from "testing/asserts.ts";
1+
import { assertEquals, assertThrows } from "@std/assert";
22

3-
import { describe, it } from "testing/bdd.ts";
3+
import { describe, it } from "@std/testing/bdd";
44

55
import { Bignum } from "../src/utils/bignum.ts";
66

test/cipherSuite.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals, assertRejects, assertThrows } from "testing/asserts.ts";
2-
import { describe, it } from "testing/bdd.ts";
1+
import { assertEquals, assertRejects, assertThrows } from "@std/assert";
2+
import { describe, it } from "@std/testing/bdd";
33

44
import * as errors from "../src/errors.ts";
55
import { AeadId, KdfId, KemId } from "../src/identifiers.ts";

test/cipherSuiteBackwardCompat.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { assertEquals, assertRejects, assertThrows } from "testing/asserts.ts";
1+
import { assertEquals, assertRejects, assertThrows } from "@std/assert";
22

3-
import { describe, it } from "testing/bdd.ts";
3+
import { describe, it } from "@std/testing/bdd";
44

55
import { Aead, Kdf, Kem } from "../src/identifiers.ts"; // deprecated identifiers as the test target.
66
import { CipherSuite } from "../src/cipherSuite.ts";

0 commit comments

Comments
 (0)