@@ -4,20 +4,6 @@ import { DenopsStub } from "https://deno.land/x/denops_test@v1.6.2/mod.ts";
4
4
import { emitPickerEnter , emitPickerLeave } from "./emitter.ts" ;
5
5
6
6
Deno . 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
-
21
7
await t . step ( "emit 'User FallPickerEnter:{name}'" , async ( ) => {
22
8
const called : [ string , Record < PropertyKey , unknown > ] [ ] = [ ] ;
23
9
const denops = new DenopsStub ( {
@@ -34,20 +20,6 @@ Deno.test("emitPickerEnter", async (t) => {
34
20
} ) ;
35
21
36
22
Deno . 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
-
51
23
await t . step ( "emit 'User FallPickerLeave:{name}'" , async ( ) => {
52
24
const called : [ string , Record < PropertyKey , unknown > ] [ ] = [ ] ;
53
25
const denops = new DenopsStub ( {
0 commit comments