Skip to content

Commit 0116b6a

Browse files
committed
💪 Use assert/mod instead of testing/asserts
1 parent a9860a0 commit 0116b6a

31 files changed

+34
-34
lines changed

denops_std/argument/flags_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { parseFlags } from "./flags.ts";
33

44
Deno.test("parseFlags", () => {

denops_std/argument/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { parse } from "./mod.ts";
33

44
Deno.test("parse", () => {

denops_std/argument/opts_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { parseOpts } from "./opts.ts";
33

44
Deno.test("parseOpts", () => {

denops_std/autocmd/common_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { define, emit, emitAll, list, remove } from "./common.ts";

denops_std/autocmd/group_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { group } from "./group.ts";

denops_std/batch/batch_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import {
33
assertSpyCall,
44
assertSpyCalls,

denops_std/batch/collect_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import type { Denops } from "https://deno.land/x/denops_core@v5.0.0/mod.ts";
77
import { collect } from "./collect.ts";

denops_std/buffer/buffer_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { default as Encoding } from "https://cdn.skypack.dev/encoding-japanese@2.0.0/";
77
import * as fn from "../function/mod.ts";

denops_std/buffer/decoration_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import * as fn from "../function/mod.ts";
44
import * as vimFn from "../function/vim/mod.ts";

denops_std/buffer/fileencoding_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { default as Encoding } from "https://cdn.skypack.dev/encoding-japanese@2.0.0/";
33
import { tryDecode } from "./fileencoding.ts";
44

denops_std/buffer/fileformat_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { FileFormat, findFileFormat, splitText } from "./fileformat.ts";
33

44
Deno.test("splitText", async (t) => {

denops_std/bufname/bufname.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const exprPattern = /^(.*?)(?:;(.*?))?(?:#(.*))?$/;
7878
* percent-encoded characters. It's required to distinguish `params` and or `fragment`.
7979
*
8080
* ```typescript
81-
* import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
81+
* import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
8282
* import { format } from "../bufname/mod.ts";
8383
*
8484
* assertEquals(
@@ -130,7 +130,7 @@ const exprPattern = /^(.*?)(?:;(.*?))?(?:#(.*))?$/;
130130
* constructing a buffer name from a real path. For example
131131
*
132132
* ```typescript
133-
* import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
133+
* import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
134134
* import * as path from "https://deno.land/std/path/mod.ts";
135135
* import { format } from "../bufname/mod.ts";
136136
*
@@ -170,7 +170,7 @@ export function format(
170170
* For example, if it contains unusable characters ("<>|?*).
171171
*
172172
* ```typescript
173-
* import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
173+
* import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
174174
* import { parse } from "../bufname/mod.ts";
175175
*
176176
* assertEquals(
@@ -224,7 +224,7 @@ export function format(
224224
* was constructed from a real path. For example
225225
*
226226
* ```typescript
227-
* import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
227+
* import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
228228
* import * as path from "https://deno.land/std/path/mod.ts";
229229
* import { parse } from "../bufname/mod.ts";
230230
*

denops_std/bufname/bufname_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertThrows,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import * as path from "https://deno.land/std@0.205.0/path/mod.ts";
66
import { format, parse } from "./bufname.ts";
77

denops_std/bufname/utils_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { decode, encode } from "./utils.ts";
33

44
Deno.test("encode does nothing on alphabet characters", () => {

denops_std/function/buffer_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { assert, is } from "https://deno.land/x/unknownutil@v3.10.0/mod.ts#^";
33
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
44
import { BufInfo } from "./types.ts";

denops_std/function/cursor_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { assert, is } from "https://deno.land/x/unknownutil@v3.10.0/mod.ts#^";
33
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
44
import * as cursor from "./cursor.ts";

denops_std/function/input_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { input, inputlist, inputsecret } from "./input.ts";
77
import * as autocmd from "../autocmd/mod.ts";

denops_std/function/various_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import * as various from "./various.ts";
44

denops_std/helper/execute_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertInstanceOf,
44
assertRejects,
5-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
5+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
66
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
77
import { execute } from "./execute.ts";
88

denops_std/helper/input_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { input } from "./input.ts";
77
import { execute } from "./execute.ts";

denops_std/helper/load_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { load } from "./load.ts";
77

denops_std/lambda/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import * as lambda from "./mod.ts";
77

denops_std/mapping/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { Mapping, Mode } from "./types.ts";
77
import * as mapping from "./mod.ts";

denops_std/mapping/parser_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertThrows,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { Mapping } from "./types.ts";
66
import { parse } from "./parser.ts";
77

denops_std/option/_generated_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assert as assertTruthy,
33
assertEquals,
44
assertFalse as assertFalsy,
5-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
5+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
66
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
77
import * as _generated from "./_generated.ts";
88

denops_std/variable/environment_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import { environment } from "./environment.ts";
44

denops_std/variable/option_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import { globalOptions, localOptions, options } from "./option.ts";
44

denops_std/variable/register_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
4+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
55
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
66
import { register } from "./register.ts";
77

denops_std/variable/variable_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22
import { test } from "https://deno.land/x/denops_test@v1.4.0/mod.ts";
33
import { buffers, globals, tabpages, vim, windows } from "./variable.ts";
44

scripts/markdown_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.205.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
22

33
import { createMarkdownFromHelp } from "./markdown.ts";
44

scripts/utils_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
assertInstanceOf,
44
assertRejects,
55
assertThrows,
6-
} from "https://deno.land/std@0.205.0/testing/asserts.ts";
6+
} from "https://deno.land/std@0.205.0/assert/mod.ts";
77
import { stub } from "https://deno.land/std@0.205.0/testing/mock.ts";
88

99
import {

0 commit comments

Comments
 (0)