@@ -4,7 +4,6 @@ import { test } from "@denops/test";
4
4
import { expr } from "./expression.ts" ;
5
5
import { rawString } from "./string.ts" ;
6
6
import { type VimEvaluatable , vimExpressionOf } from "./vim_evaluatable.ts" ;
7
- import { exprQuote } from "../helper/expr_string.ts" ;
8
7
9
8
import { stringify } from "./stringify.ts" ;
10
9
@@ -88,10 +87,6 @@ Deno.test("stringify()", async (t) => {
88
87
const actual = stringify ( rawString `\<Cmd>call Foo("bar")\<CR>` ) ;
89
88
assertEquals ( actual , '"\\<Cmd>call Foo(\\"bar\\")\\<CR>"' ) ;
90
89
} ) ;
91
- await t . step ( "stringify ExprString to Vim's expr-string" , ( ) => {
92
- const actual = stringify ( exprQuote `\<Cmd>call Foo("bar")\<CR>` ) ;
93
- assertEquals ( actual , '"\\<Cmd>call Foo(\\"bar\\")\\<CR>"' ) ;
94
- } ) ;
95
90
await t . step ( "stringify array to Vim's list" , ( ) => {
96
91
const actual = stringify ( [ "foo" , 42 , null , undefined ] ) ;
97
92
assertEquals ( actual , "['foo',42,v:null,v:null]" ) ;
@@ -173,13 +168,6 @@ Deno.test("stringify()", async (t) => {
173
168
const actual = stringify ( x ) ;
174
169
assertEquals ( actual , '"\\<Cmd>call Foo(\\"bar\\")\\<CR>"' ) ;
175
170
} ) ;
176
- await t . step ( "stringify ExprString that returns from `toJSON`" , ( ) => {
177
- const x = {
178
- toJSON : ( ) => exprQuote `\<Cmd>call Foo("bar")\<CR>` ,
179
- } ;
180
- const actual = stringify ( x ) ;
181
- assertEquals ( actual , '"\\<Cmd>call Foo(\\"bar\\")\\<CR>"' ) ;
182
- } ) ;
183
171
await t . step ( "stringify object that has `toJSON` method" , ( ) => {
184
172
const actual = stringify ( {
185
173
foo : 42 ,
0 commit comments