|
1 | 1 | # 📝 denops_test |
2 | 2 |
|
| 3 | +[](https://jsr.io/@denops/test) |
3 | 4 | [](https://github.com/vim-denops/deno-denops-test/actions/workflows/test.yml) |
4 | | -[](https://doc.deno.land/https/deno.land/x/denops_test/mod.ts) |
5 | | -[](https://deno.land/x/denops_test) |
6 | 5 | [](https://codecov.io/github/vim-denops/deno-denops-test) |
7 | 6 |
|
8 | 7 | A [Deno] module designed for testing [denops.vim]. This module is intended to be |
@@ -31,12 +30,8 @@ If you want to test denops plugins with a real Vim and/or Neovim process, use |
31 | 30 | the `test` function to define a test case, as shown below: |
32 | 31 |
|
33 | 32 | ```typescript |
34 | | -import { |
35 | | - assert, |
36 | | - assertEquals, |
37 | | - assertFalse, |
38 | | -} from "https://deno.land/[email protected]/assert/mod.ts"; |
39 | | -import { test } from "https://deno.land/x/denops_test@$MODULE_VERSION/mod.ts"; |
| 33 | +import { assert, assertEquals, assertFalse } from "jsr:@std/assert"; |
| 34 | +import { test } from "jsr:@denops/test"; |
40 | 35 |
|
41 | 36 | test("vim", "Start Vim to test denops features", async (denops) => { |
42 | 37 | assertFalse(await denops.call("has", "nvim")); |
@@ -72,8 +67,8 @@ the `DenopsStub` class to create a stub instance of the `Denops` interface, as |
72 | 67 | shown below: |
73 | 68 |
|
74 | 69 | ```typescript |
75 | | -import { assertEquals } from "https://deno.land/[email protected]/assert/mod.ts"; |
76 | | -import { DenopsStub } from "https://deno.land/x/denops_test@$MODULE_VERSION/mod.ts"; |
| 70 | +import { assertEquals } from "jsr:@std/assert"; |
| 71 | +import { DenopsStub } from "jsr:@denops/test"; |
77 | 72 |
|
78 | 73 | Deno.test("denops.call", async () => { |
79 | 74 | const denops = new DenopsStub({ |
@@ -158,6 +153,10 @@ jobs: |
158 | 153 | run: deno test -A |
159 | 154 | ``` |
160 | 155 |
|
| 156 | +## For developers |
| 157 | +
|
| 158 | +This library may be called from denops itself so import map is not available. |
| 159 | +
|
161 | 160 | ## License |
162 | 161 |
|
163 | 162 | The code follows the MIT license, as stated in [LICENSE](./LICENSE). |
|
0 commit comments