@@ -6,7 +6,7 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
6
6
( ) =>
7
7
format ( {
8
8
scheme : "denops0number" ,
9
- path : "/absolute/path/to/worktree" ,
9
+ expr : "/absolute/path/to/worktree" ,
10
10
} ) ,
11
11
undefined ,
12
12
"contains unusable characters" ,
@@ -15,7 +15,7 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
15
15
( ) =>
16
16
format ( {
17
17
scheme : "denops+plus" ,
18
- path : "/absolute/path/to/worktree" ,
18
+ expr : "/absolute/path/to/worktree" ,
19
19
} ) ,
20
20
undefined ,
21
21
"contains unusable characters" ,
@@ -24,7 +24,7 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
24
24
( ) =>
25
25
format ( {
26
26
scheme : "denops-minus" ,
27
- path : "/absolute/path/to/worktree" ,
27
+ expr : "/absolute/path/to/worktree" ,
28
28
} ) ,
29
29
undefined ,
30
30
"contains unusable characters" ,
@@ -33,7 +33,7 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
33
33
( ) =>
34
34
format ( {
35
35
scheme : "denops.dot" ,
36
- path : "/absolute/path/to/worktree" ,
36
+ expr : "/absolute/path/to/worktree" ,
37
37
} ) ,
38
38
undefined ,
39
39
"contains unusable characters" ,
@@ -42,7 +42,7 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
42
42
( ) =>
43
43
format ( {
44
44
scheme : "denops_underscore" ,
45
- path : "/absolute/path/to/worktree" ,
45
+ expr : "/absolute/path/to/worktree" ,
46
46
} ) ,
47
47
undefined ,
48
48
"contains unusable characters" ,
@@ -51,16 +51,16 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
51
51
Deno . test ( "format returns buffer name string from Bufname instance" , ( ) => {
52
52
const src = {
53
53
scheme : "denops" ,
54
- path : "/absolute/path/to/worktree" ,
54
+ expr : "/absolute/path/to/worktree" ,
55
55
} ;
56
56
const dst = format ( src ) ;
57
57
const exp = "denops:///absolute/path/to/worktree" ;
58
58
assertEquals ( dst , exp ) ;
59
59
} ) ;
60
- Deno . test ( "format encodes unusable characters in 'path '" , ( ) => {
60
+ Deno . test ( "format encodes unusable characters in 'expr '" , ( ) => {
61
61
const src = {
62
62
scheme : "denops" ,
63
- path : "/<>|?*" ,
63
+ expr : "/<>|?*" ,
64
64
} ;
65
65
const dst = format ( src ) ;
66
66
const exp = "denops:///%3C%3E%7C%3F%2A" ;
@@ -69,7 +69,7 @@ Deno.test("format encodes unusable characters in 'path'", () => {
69
69
Deno . test ( "format returns buffer name string from Bufname instance (with URLSearchParams)" , ( ) => {
70
70
const src = {
71
71
scheme : "denops" ,
72
- path : "/absolute/path/to/worktree" ,
72
+ expr : "/absolute/path/to/worktree" ,
73
73
params : {
74
74
foo : "foo" ,
75
75
bar : [ "bar" , "bar" ] ,
@@ -83,7 +83,7 @@ Deno.test("format returns buffer name string from Bufname instance (with URLSear
83
83
Deno . test ( "format encodes unusable characters in 'params'" , ( ) => {
84
84
const src = {
85
85
scheme : "denops" ,
86
- path : "/absolute/path/to/worktree" ,
86
+ expr : "/absolute/path/to/worktree" ,
87
87
params : {
88
88
foo : "<>|?*" ,
89
89
} ,
@@ -95,7 +95,7 @@ Deno.test("format encodes unusable characters in 'params'", () => {
95
95
Deno . test ( "format returns buffer name string from Bufname instance (with fragment)" , ( ) => {
96
96
const src = {
97
97
scheme : "denops" ,
98
- path : "/absolute/path/to/worktree" ,
98
+ expr : "/absolute/path/to/worktree" ,
99
99
fragment : "Hello World.md" ,
100
100
} ;
101
101
const dst = format ( src ) ;
@@ -105,7 +105,7 @@ Deno.test("format returns buffer name string from Bufname instance (with fragmen
105
105
Deno . test ( "format encodes unusable characters in 'fragment'" , ( ) => {
106
106
const src = {
107
107
scheme : "denops" ,
108
- path : "/absolute/path/to/worktree" ,
108
+ expr : "/absolute/path/to/worktree" ,
109
109
fragment : "<>|?*" ,
110
110
} ;
111
111
const dst = format ( src ) ;
@@ -115,7 +115,7 @@ Deno.test("format encodes unusable characters in 'fragment'", () => {
115
115
Deno . test ( "format returns buffer name string from Bufname instance (with URLSearchParams and fragment)" , ( ) => {
116
116
const src = {
117
117
scheme : "denops" ,
118
- path : "/absolute/path/to/worktree" ,
118
+ expr : "/absolute/path/to/worktree" ,
119
119
params : {
120
120
foo : "foo" ,
121
121
bar : [ "bar" , "bar" ] ,
@@ -128,10 +128,10 @@ Deno.test("format returns buffer name string from Bufname instance (with URLSear
128
128
"denops:///absolute/path/to/worktree;foo=foo&bar=bar&bar=bar#Hello World.md" ;
129
129
assertEquals ( dst , exp ) ;
130
130
} ) ;
131
- Deno . test ( "format encodes ';' and '#' in 'path '" , ( ) => {
131
+ Deno . test ( "format encodes ';' and '#' in 'expr '" , ( ) => {
132
132
const src = {
133
133
scheme : "denops" ,
134
- path : "/hello;world#hello" ,
134
+ expr : "/hello;world#hello" ,
135
135
} ;
136
136
const dst = format ( src ) ;
137
137
const exp = "denops:///hello%3Bworld%23hello" ;
@@ -180,16 +180,16 @@ Deno.test("parse returns Bufname instance from buffer name", () => {
180
180
const dst = parse ( src ) ;
181
181
const exp = {
182
182
scheme : "denops" ,
183
- path : "/absolute/path/to/worktree" ,
183
+ expr : "/absolute/path/to/worktree" ,
184
184
} ;
185
185
assertEquals ( dst , exp ) ;
186
186
} ) ;
187
- Deno . test ( "parse decodes percent-encoded characters in 'path '" , ( ) => {
187
+ Deno . test ( "parse decodes percent-encoded characters in 'expr '" , ( ) => {
188
188
const src = "denops:///%3C%3E%7C%3F%2A" ;
189
189
const dst = parse ( src ) ;
190
190
const exp = {
191
191
scheme : "denops" ,
192
- path : "/<>|?*" ,
192
+ expr : "/<>|?*" ,
193
193
} ;
194
194
assertEquals ( dst , exp ) ;
195
195
} ) ;
@@ -198,7 +198,7 @@ Deno.test("parse returns Bufname instance from buffer name (with params)", () =>
198
198
const dst = parse ( src ) ;
199
199
const exp = {
200
200
scheme : "denops" ,
201
- path : "/absolute/path/to/worktree" ,
201
+ expr : "/absolute/path/to/worktree" ,
202
202
params : {
203
203
foo : "foo" ,
204
204
bar : [ "bar" , "bar" ] ,
@@ -211,7 +211,7 @@ Deno.test("parse decodes percent-encoded characters in 'params'", () => {
211
211
const dst = parse ( src ) ;
212
212
const exp = {
213
213
scheme : "denops" ,
214
- path : "/absolute/path/to/worktree" ,
214
+ expr : "/absolute/path/to/worktree" ,
215
215
params : {
216
216
foo : "<>|?*" ,
217
217
} ,
@@ -223,7 +223,7 @@ Deno.test("parse returns Bufname instance from buffer name (with fragment)", ()
223
223
const dst = parse ( src ) ;
224
224
const exp = {
225
225
scheme : "denops" ,
226
- path : "/absolute/path/to/worktree" ,
226
+ expr : "/absolute/path/to/worktree" ,
227
227
fragment : "Hello World.md" ,
228
228
} ;
229
229
assertEquals ( dst , exp ) ;
@@ -233,7 +233,7 @@ Deno.test("parse decodes percent-encoded characters in 'fragment'", () => {
233
233
const dst = parse ( src ) ;
234
234
const exp = {
235
235
scheme : "denops" ,
236
- path : "/absolute/path/to/worktree" ,
236
+ expr : "/absolute/path/to/worktree" ,
237
237
fragment : "<>|?*" ,
238
238
} ;
239
239
assertEquals ( dst , exp ) ;
@@ -244,7 +244,7 @@ Deno.test("parse returns Bufname instance from buffer name (with params and frag
244
244
const dst = parse ( src ) ;
245
245
const exp = {
246
246
scheme : "denops" ,
247
- path : "/absolute/path/to/worktree" ,
247
+ expr : "/absolute/path/to/worktree" ,
248
248
params : {
249
249
foo : "foo" ,
250
250
bar : [ "bar" , "bar" ] ,
@@ -253,12 +253,12 @@ Deno.test("parse returns Bufname instance from buffer name (with params and frag
253
253
} ;
254
254
assertEquals ( dst , exp ) ;
255
255
} ) ;
256
- Deno . test ( "parse decode percent-encoded characters (';' and '#') in 'path '" , ( ) => {
256
+ Deno . test ( "parse decode percent-encoded characters (';' and '#') in 'expr '" , ( ) => {
257
257
const src = "denops:///hello%3Bworld%23hello" ;
258
258
const dst = parse ( src ) ;
259
259
const exp = {
260
260
scheme : "denops" ,
261
- path : "/hello;world#hello" ,
261
+ expr : "/hello;world#hello" ,
262
262
} ;
263
263
assertEquals ( dst , exp ) ;
264
264
} ) ;
0 commit comments