@@ -21,42 +21,42 @@ describe('Command Suggestion', () => {
2121
2222 it ( 'execute command' , async ( ) => {
2323 await client1 . shouldReply ( 'foo bar' , 'foobar' )
24- await client1 . shouldNotReply ( ' ' )
24+ await client1 . shouldNotReply ( '. ' )
2525 } )
2626
2727 it ( 'no suggestions' , async ( ) => {
2828 await client1 . shouldNotReply ( 'bar foo' )
2929 } )
3030
3131 it ( 'apply suggestions 1' , async ( ) => {
32- await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令 。' )
32+ await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?回复句号以使用推测的指令 。' )
3333 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 ( '. ' )
3636 } )
3737
3838 it ( 'apply suggestions 2' , async ( ) => {
39- await client2 . shouldReply ( '/foooo -t bar' , '您要找的是不是“fooo”?发送句号以使用推测的指令 。' )
39+ await client2 . shouldReply ( '/foooo -t bar' , '您要找的是不是“fooo”?回复句号以使用推测的指令 。' )
4040 await client1 . shouldReply ( 'foo bar' , 'foobar' )
41- await client2 . shouldReply ( ' ' , 'fooobar' )
42- await client2 . shouldNotReply ( ' ' )
41+ await client2 . shouldReply ( '. ' , 'fooobar' )
42+ await client2 . shouldNotReply ( '. ' )
4343 } )
4444
4545 it ( 'ignore suggestions 1' , async ( ) => {
46- await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令 。' )
46+ await client1 . shouldReply ( 'fo bar' , '您要找的是不是“foo”?回复句号以使用推测的指令 。' )
4747 await client1 . shouldNotReply ( 'bar foo' )
48- await client1 . shouldNotReply ( ' ' )
48+ await client1 . shouldNotReply ( '. ' )
4949 } )
5050
5151 it ( 'ignore suggestions 2' , async ( ) => {
52- await client2 . shouldReply ( '/fo bar' , '您要找的是不是“foo”?发送句号以使用推测的指令 。' )
52+ await client2 . shouldReply ( '/fo bar' , '您要找的是不是“foo”?回复句号以使用推测的指令 。' )
5353 await client2 . shouldReply ( '/foo bar' , 'foobar' )
54- await client2 . shouldNotReply ( ' ' )
54+ await client2 . shouldNotReply ( '. ' )
5555 } )
5656
5757 it ( 'multiple suggestions' , async ( ) => {
5858 await client1 . shouldReply ( 'fool bar' , '您要找的是不是“foo”或“fooo”或“bool”?' )
59- await client1 . shouldNotReply ( ' ' )
59+ await client1 . shouldNotReply ( '. ' )
6060 } )
6161} )
6262
@@ -83,16 +83,16 @@ describe('session.suggest()', () => {
8383 after ( ( ) => app . stop ( ) )
8484
8585 it ( 'no suggestions' , async ( ) => {
86- await client . shouldNotReply ( ' ' )
86+ await client . shouldNotReply ( '. ' )
8787 await client . shouldNotReply ( 'find for' )
8888 } )
8989
9090 it ( 'show suggestions' , async ( ) => {
9191 await client . shouldReply ( '.find 111' , 'PREFIX' )
92- await client . shouldNotReply ( ' ' )
92+ await client . shouldNotReply ( '. ' )
9393 await client . shouldReply ( '.find for' , `PREFIX您要找的是不是“foo”?SUFFIX` )
94- await client . shouldReply ( ' ' , 'found:foo' )
94+ await client . shouldReply ( '. ' , 'found:foo' )
9595 await client . shouldReply ( '.find bax' , `PREFIX您要找的是不是“bar”或“baz”?` )
96- await client . shouldNotReply ( ' ' )
96+ await client . shouldNotReply ( '. ' )
9797 } )
9898} )
0 commit comments