@@ -6,7 +6,7 @@ const tmp = require('tmp');
66
77const sample = {
88 content : 'please get markers' ,
9- prefix : 'candra ' ,
9+ prefix : 'cando ' ,
1010 roomName : 'MyRoom' ,
1111 userName : 'Ricky' ,
1212}
@@ -67,23 +67,23 @@ const TEST_FILE = tmp.fileSync().name
6767describe ( 'support' , function ( ) {
6868 it ( 'ping' , function ( ) {
6969 const reply = support . process ( oneTicket ( ) , message ( '' ) )
70- assert . equal ( reply , '#candra : Yes Ricky?' )
70+ assert . equal ( reply , '#cando : Yes Ricky?' )
7171 } )
7272
7373 it ( 'close' , function ( ) {
7474 const reply = support . process ( oneTicket ( ) , message ( 'close #1' ) )
75- assert . equal ( reply , '#candra : ticket #1 is closed' )
75+ assert . equal ( reply , '#cando : ticket #1 is closed' )
7676 } )
7777
7878 it ( 'debug' , function ( ) {
7979 const tickets = oneTicket ( )
8080 const reply = support . process ( tickets , message ( 'debug' ) )
81- assert . deepEqual ( JSON . parse ( reply . slice ( '#candra : ' . length ) ) , tickets )
81+ assert . deepEqual ( JSON . parse ( reply . slice ( '#cando : ' . length ) ) , tickets )
8282 } )
8383
8484 it ( 'invalid' , function ( ) {
8585 const reply = support . process ( oneTicket ( ) , message ( 'handsome' ) )
86- assert . equal ( reply , '#candra : I don\'t understand: handsome, can you try again?' )
86+ assert . equal ( reply , '#cando : I don\'t understand: handsome, can you try again?' )
8787 } )
8888
8989 it ( 'help' , function ( ) {
@@ -94,7 +94,7 @@ describe('support', function() {
9494 it ( 'forget it' , function ( ) {
9595 const tickets = oneTicket ( )
9696 const reply = support . process ( tickets , message ( 'forget it' ) )
97- assert . equal ( reply , '#candra : deleted 1 tickets' )
97+ assert . equal ( reply , '#cando : deleted 1 tickets' )
9898 assert . equal ( tickets . lastId , 0 )
9999 } )
100100
@@ -115,7 +115,7 @@ describe('support', function() {
115115
116116 it ( 'TODO empty' , function ( ) {
117117 const reply = support . process ( { } , message ( 'todo' ) )
118- assert . equal ( reply , '#candra : nothing TODO!' )
118+ assert . equal ( reply , '#cando : nothing TODO!' )
119119 } )
120120
121121 it ( 'TODO with ticket specific mine' , function ( ) {
0 commit comments