@@ -104,9 +104,9 @@ describe('support', function() {
104104
105105 it ( 'forget it' , function ( ) {
106106 const data = oneTicket ( )
107- const reply = support . process ( data , message ( 'forget it ' ) )
108- assert . equal ( reply , '#cando: deleted 1 tickets ' )
109- assert . equal ( data . tickets . lastId , 0 )
107+ const reply = support . process ( data , message ( 'forget #1 ' ) )
108+ assert . equal ( reply , '#cando: deleted ticket #1 ' )
109+ assert . equal ( data . tickets . lastId , 1 )
110110 } )
111111
112112 it ( 'gimme a compliment' , function ( ) {
@@ -145,19 +145,19 @@ describe('support', function() {
145145
146146 it ( 'TODO with ticket specific mine' , function ( ) {
147147 const reply = support . process ( twoTickets ( ) , message ( 'mine' ) )
148- assert . match ( reply , / t i c k e t # 1 / )
149- assert . notMatch ( reply , / t i c k e t # 2 / )
148+ assert . match ( reply , / # 1 : R i c k y / )
149+ assert . notMatch ( reply , / # 2 / )
150150 } )
151151
152152 it ( 'TODO with ticket specific other user' , function ( ) {
153153 const reply = support . process ( twoTickets ( ) , message ( 'TODO dmitry' ) )
154- assert . notMatch ( reply , / t i c k e t # 1 / )
155- assert . match ( reply , / t i c k e t # 2 / )
154+ assert . notMatch ( reply , / # 1 / )
155+ assert . match ( reply , / # 2 / )
156156 } )
157157
158158 it ( 'Add comment to ticket' , function ( ) {
159159 const reply = support . process ( oneTicket ( ) , message ( 'ticket #1 do not forget to get different colors' ) )
160- assert . match ( reply , / t i c k e t # 1 / )
160+ assert . match ( reply , / # 1 / )
161161 assert . match ( reply , / d o n o t f o r g e t t o g e t d i f f e r e n t c o l o r s / )
162162 } )
163163
0 commit comments