@@ -24,7 +24,7 @@ describe('Bot Events', function () {
24
24
const bot = new Bot ( useConfig ) ;
25
25
bot . sendToIRC = sandbox . stub ( ) ;
26
26
bot . sendToDiscord = sandbox . stub ( ) ;
27
- bot . sendSpecialToDiscord = sandbox . stub ( ) ;
27
+ bot . sendExactToDiscord = sandbox . stub ( ) ;
28
28
return bot ;
29
29
} ;
30
30
@@ -130,7 +130,7 @@ describe('Bot Events', function () {
130
130
const nick = 'user' ;
131
131
const text = `*${ nick } * has joined the channel` ;
132
132
bot . ircClient . emit ( 'join' , channel , nick ) ;
133
- bot . sendSpecialToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
133
+ bot . sendExactToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
134
134
} ) ;
135
135
136
136
it ( 'should not announce itself joining by default' , function ( ) {
@@ -139,7 +139,7 @@ describe('Bot Events', function () {
139
139
const channel = '#channel' ;
140
140
const nick = bot . nickname ;
141
141
bot . ircClient . emit ( 'join' , channel , nick ) ;
142
- bot . sendSpecialToDiscord . should . not . have . been . called ;
142
+ bot . sendExactToDiscord . should . not . have . been . called ;
143
143
} ) ;
144
144
145
145
it ( 'should be possible to get the bot to announce itself joining' , function ( ) {
@@ -149,7 +149,7 @@ describe('Bot Events', function () {
149
149
const nick = this . bot . nickname ;
150
150
const text = `*${ nick } * has joined the channel` ;
151
151
bot . ircClient . emit ( 'join' , channel , nick ) ;
152
- bot . sendSpecialToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
152
+ bot . sendExactToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
153
153
} ) ;
154
154
155
155
it ( 'should send part messages to discord when config enabled' , function ( ) {
@@ -160,7 +160,7 @@ describe('Bot Events', function () {
160
160
const reason = 'Leaving' ;
161
161
const text = `*${ nick } * has left the channel (${ reason } )` ;
162
162
bot . ircClient . emit ( 'part' , channel , nick , reason ) ;
163
- bot . sendSpecialToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
163
+ bot . sendExactToDiscord . should . have . been . calledWithExactly ( channel , text ) ;
164
164
} ) ;
165
165
166
166
it ( 'should send quit messages to discord when config enabled' , function ( ) {
@@ -172,8 +172,8 @@ describe('Bot Events', function () {
172
172
const reason = 'Quit: Leaving' ;
173
173
const text = `*${ nick } * has quit (${ reason } )` ;
174
174
bot . ircClient . emit ( 'quit' , nick , reason , [ channel1 , channel2 ] ) ;
175
- bot . sendSpecialToDiscord . getCall ( 0 ) . args . should . deep . equal ( [ channel1 , text ] ) ;
176
- bot . sendSpecialToDiscord . getCall ( 1 ) . args . should . deep . equal ( [ channel2 , text ] ) ;
175
+ bot . sendExactToDiscord . getCall ( 0 ) . args . should . deep . equal ( [ channel1 , text ] ) ;
176
+ bot . sendExactToDiscord . getCall ( 1 ) . args . should . deep . equal ( [ channel2 , text ] ) ;
177
177
} ) ;
178
178
179
179
it ( 'should be possible to disable join/part/quit messages' , function ( ) {
@@ -187,7 +187,7 @@ describe('Bot Events', function () {
187
187
bot . ircClient . emit ( 'part' , channel , nick , reason ) ;
188
188
bot . ircClient . emit ( 'join' , channel , nick ) ;
189
189
bot . ircClient . emit ( 'quit' , nick , reason , [ channel ] ) ;
190
- bot . sendSpecialToDiscord . should . not . have . been . called ;
190
+ bot . sendExactToDiscord . should . not . have . been . called ;
191
191
} ) ;
192
192
193
193
it ( 'should not listen to discord debug messages in production' , function ( ) {
0 commit comments