Skip to content

Commit 43bb1bd

Browse files
committed
chore: Move existing and new Deno testing dependencies to deno.json
1 parent 16e1cc1 commit 43bb1bd

11 files changed

Lines changed: 14 additions & 12 deletions

deno.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"@std/crypto": "jsr:@std/crypto@^1.0.4",
99
"@std/encoding": "jsr:@std/encoding@^1.0.9",
1010
"@std/fmt": "jsr:@std/fmt@^1.0.6",
11-
"@std/path": "jsr:@std/path@^1.0.8"
11+
"@std/path": "jsr:@std/path@^1.0.8",
12+
"@std/assert": "jsr:@std/assert@^1.0.10",
13+
"@std/testing": "jsr:@std/testing@^1.0.17"
1214
},
1315
"lock": false
1416
}

tests/auth_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertNotEquals,
44
assertRejects,
5-
} from "jsr:@std/assert@1.0.10";
5+
} from "@std/assert";
66
import { Client as ScramClient, Reason } from "../connection/scram.ts";
77

88
Deno.test("Scram client reproduces RFC 7677 example", async () => {

tests/connection_params_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals, assertThrows } from "jsr:@std/assert@1.0.10";
1+
import { assertEquals, assertThrows } from "@std/assert";
22
import { fromFileUrl } from "@std/path";
33
import { createParams } from "../connection/connection_params.ts";
44
import { ConnectionParamsError } from "../client/error.ts";

tests/connection_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals, assertRejects } from "jsr:@std/assert@1.0.10";
1+
import { assertEquals, assertRejects } from "@std/assert";
22
import { join as joinPath } from "@std/path";
33
import {
44
getClearConfiguration,

tests/data_types_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "jsr:@std/assert@1.0.10";
1+
import { assertEquals } from "@std/assert";
22
import { decodeBase64, encodeBase64 } from "@std/encoding/base64";
33
import { getMainConfiguration } from "./config.ts";
44
import { generateSimpleClientTest } from "./helpers.ts";

tests/decode_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
decodePoint,
1818
decodeTid,
1919
} from "../query/decoders.ts";
20-
import { assertEquals, assertThrows } from "jsr:@std/assert@1.0.10";
20+
import { assertEquals, assertThrows } from "@std/assert";
2121
import { Oid } from "../query/oid.ts";
2222

2323
Deno.test("decodeBigint", function () {

tests/encode_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "jsr:@std/assert@1.0.10";
1+
import { assertEquals } from "@std/assert";
22
import { encodeArgument } from "../query/encode.ts";
33

44
// internally `encodeArguments` uses `getTimezoneOffset` to encode Date

tests/pool_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "jsr:@std/assert@1.0.10";
1+
import { assertEquals } from "@std/assert";
22
import { getMainConfiguration } from "./config.ts";
33
import { generatePoolClientTest } from "./helpers.ts";
44

tests/query_client_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
assertObjectMatch,
1313
assertRejects,
1414
assertThrows,
15-
} from "jsr:@std/assert@1.0.10";
16-
import { MockError, stub } from "jsr:@std/testing/mock";
15+
} from "@std/assert";
16+
import { MockError, stub } from "@std/testing/mock";
1717
import { getMainConfiguration } from "./config.ts";
1818
import type { PoolClient, QueryClient } from "../client.ts";
1919
import type { ClientOptions } from "../connection/connection_params.ts";

tests/test_deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export {
66
assertObjectMatch,
77
assertRejects,
88
assertThrows,
9-
} from "jsr:@std/assert@1.0.10";
9+
} from "@std/assert";

0 commit comments

Comments
 (0)