File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { assertEquals , test } from "../deps_test.ts" ;
2
+ import { load } from "./load.ts" ;
3
+
4
+ test ( {
5
+ mode : "any" ,
6
+ name : "load() load local Vim script file" ,
7
+ fn : async ( denops ) => {
8
+ await load ( denops , new URL ( "./load_test.vim" , import . meta. url ) ) ;
9
+ assertEquals ( await denops . eval ( "g:denops_std_load_test" ) as number , 1 ) ;
10
+ } ,
11
+ } ) ;
12
+
13
+ test ( {
14
+ mode : "any" ,
15
+ name : "load() load remote Vim script file" ,
16
+ fn : async ( denops ) => {
17
+ await load (
18
+ denops ,
19
+ new URL (
20
+ "https://raw.githubusercontent.com/vim-denops/deno-denops-std/main/denops_std/helper/load_test.vim" ,
21
+ import . meta. url ,
22
+ ) ,
23
+ ) ;
24
+ assertEquals ( await denops . eval ( "g:denops_std_load_test" ) as number , 1 ) ;
25
+ } ,
26
+ } ) ;
Original file line number Diff line number Diff line change
1
+ let g: denops_std_load_test = 1
You can’t perform that action at this time.
0 commit comments