@@ -21,7 +21,7 @@ describe('Command Suggestion', () => {
21
21
22
22
it ( 'execute command' , async ( ) => {
23
23
await client1 . shouldReply ( 'foo bar' , 'foobar' )
24
- await client1 . shouldNotReply ( ' ' )
24
+ await client1 . shouldNotReply ( '. ' )
25
25
} )
26
26
27
27
it ( 'no suggestions' , async ( ) => {
@@ -31,32 +31,32 @@ describe('Command Suggestion', () => {
31
31
it ( 'apply suggestions 1' , async ( ) => {
32
32
await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令。' )
33
33
await client2 . shouldReply ( '/fooo -t bar' , 'fooobar' )
34
- await client1 . shouldReply ( ' ' , 'foobar' )
35
- await client1 . shouldNotReply ( ' ' )
34
+ await client1 . shouldReply ( '. ' , 'foobar' )
35
+ await client1 . shouldNotReply ( '. ' )
36
36
} )
37
37
38
38
it ( 'apply suggestions 2' , async ( ) => {
39
39
await client2 . shouldReply ( '/foooo -t bar' , '您要找的是不是“fooo”?发送句号以使用推测的指令。' )
40
40
await client1 . shouldReply ( 'foo bar' , 'foobar' )
41
- await client2 . shouldReply ( ' ' , 'fooobar' )
42
- await client2 . shouldNotReply ( ' ' )
41
+ await client2 . shouldReply ( '. ' , 'fooobar' )
42
+ await client2 . shouldNotReply ( '. ' )
43
43
} )
44
44
45
45
it ( 'ignore suggestions 1' , async ( ) => {
46
46
await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令。' )
47
47
await client1 . shouldNotReply ( 'bar foo' )
48
- await client1 . shouldNotReply ( ' ' )
48
+ await client1 . shouldNotReply ( '. ' )
49
49
} )
50
50
51
51
it ( 'ignore suggestions 2' , async ( ) => {
52
52
await client2 . shouldReply ( '/fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令。' )
53
53
await client2 . shouldReply ( '/foo bar' , 'foobar' )
54
- await client2 . shouldNotReply ( ' ' )
54
+ await client2 . shouldNotReply ( '. ' )
55
55
} )
56
56
57
57
it ( 'multiple suggestions' , async ( ) => {
58
58
await client1 . shouldReply ( 'fool bar' , '您要找的是不是“foo”或“fooo”或“bool”?' )
59
- await client1 . shouldNotReply ( ' ' )
59
+ await client1 . shouldNotReply ( '. ' )
60
60
} )
61
61
} )
62
62
@@ -83,16 +83,16 @@ describe('session.suggest()', () => {
83
83
after ( ( ) => app . stop ( ) )
84
84
85
85
it ( 'no suggestions' , async ( ) => {
86
- await client . shouldNotReply ( ' ' )
86
+ await client . shouldNotReply ( '. ' )
87
87
await client . shouldNotReply ( 'find for' )
88
88
} )
89
89
90
90
it ( 'show suggestions' , async ( ) => {
91
91
await client . shouldReply ( '.find 111' , 'PREFIX' )
92
- await client . shouldNotReply ( ' ' )
92
+ await client . shouldNotReply ( '. ' )
93
93
await client . shouldReply ( '.find for' , `PREFIX您要找的是不是“foo”?SUFFIX` )
94
- await client . shouldReply ( ' ' , 'found:foo' )
94
+ await client . shouldReply ( '. ' , 'found:foo' )
95
95
await client . shouldReply ( '.find bax' , `PREFIX您要找的是不是“bar”或“baz”?` )
96
- await client . shouldNotReply ( ' ' )
96
+ await client . shouldNotReply ( '. ' )
97
97
} )
98
98
} )
0 commit comments