@@ -4,20 +4,6 @@ import { DenopsStub } from "https://deno.land/x/denops_test@v1.6.2/mod.ts";
44import { emitPickerEnter , emitPickerLeave } from "./emitter.ts" ;
55
66Deno . test ( "emitPickerEnter" , async ( t ) => {
7- await t . step ( "invoke 'fall#internal#mapping#store'" , async ( ) => {
8- const called : [ string , unknown [ ] ] [ ] = [ ] ;
9- const denops = new DenopsStub ( {
10- call ( name , ...args ) : Promise < unknown > {
11- called . push ( [ name , args ] ) ;
12- return Promise . resolve ( ) ;
13- } ,
14- } ) ;
15- await emitPickerEnter ( denops , "test" ) ;
16- assertEquals ( called , [
17- [ "fall#internal#mapping#store" , [ ] ] ,
18- ] ) ;
19- } ) ;
20-
217 await t . step ( "emit 'User FallPickerEnter:{name}'" , async ( ) => {
228 const called : [ string , Record < PropertyKey , unknown > ] [ ] = [ ] ;
239 const denops = new DenopsStub ( {
@@ -34,20 +20,6 @@ Deno.test("emitPickerEnter", async (t) => {
3420} ) ;
3521
3622Deno . test ( "emitPickerLeave" , async ( t ) => {
37- await t . step ( "invoke 'fall#internal#mapping#restore'" , async ( ) => {
38- const called : [ string , unknown [ ] ] [ ] = [ ] ;
39- const denops = new DenopsStub ( {
40- call ( name , ...args ) : Promise < unknown > {
41- called . push ( [ name , args ] ) ;
42- return Promise . resolve ( ) ;
43- } ,
44- } ) ;
45- await emitPickerLeave ( denops , "test" ) ;
46- assertEquals ( called , [
47- [ "fall#internal#mapping#restore" , [ ] ] ,
48- ] ) ;
49- } ) ;
50-
5123 await t . step ( "emit 'User FallPickerLeave:{name}'" , async ( ) => {
5224 const called : [ string , Record < PropertyKey , unknown > ] [ ] = [ ] ;
5325 const denops = new DenopsStub ( {
0 commit comments