@@ -28,8 +28,6 @@ module('handleDeprecationWorkflow', function (hooks) {
2828 } ) ;
2929
3030 test ( 'specifying `throwOnUnhandled` as true raises' , function ( assert ) {
31- assert . expect ( 2 ) ;
32-
3331 const config = {
3432 throwOnUnhandled : true ,
3533 workflow : [ { handler : 'silence' , matchMessage : 'Sshhhhh!!' } ] ,
@@ -46,11 +44,11 @@ module('handleDeprecationWorkflow', function (hooks) {
4644 id : 'foobar' ,
4745 for : 'testing' ,
4846 } ,
49- ( ) => { }
47+ ( ) => { } ,
5048 ) ;
5149 } ,
5250 / F o o b a r r r z z z z / ,
53- 'setting raiseOnUnhandled throws for unknown workflows'
51+ 'setting raiseOnUnhandled throws for unknown workflows' ,
5452 ) ;
5553
5654 handleDeprecationWorkflow (
@@ -62,14 +60,12 @@ module('handleDeprecationWorkflow', function (hooks) {
6260 until : 'forever' ,
6361 for : 'testing' ,
6462 } ,
65- ( ) => { }
63+ ( ) => { } ,
6664 ) ;
6765 assert . ok ( true , 'did not throw when silenced' ) ;
6866 } ) ;
6967
7068 test ( 'specifying `throwOnUnhandled` as false does nothing' , function ( assert ) {
71- assert . expect ( 1 ) ;
72-
7369 const config = {
7470 throwOnUnhandled : false ,
7571 } ;
@@ -83,7 +79,7 @@ module('handleDeprecationWorkflow', function (hooks) {
8379 until : 'forever' ,
8480 for : 'testing' ,
8581 } ,
86- ( ) => { }
82+ ( ) => { } ,
8783 ) ;
8884
8985 assert . ok ( true , 'does not die when throwOnUnhandled is false' ) ;
@@ -103,6 +99,7 @@ module('handleDeprecationWorkflow', function (hooks) {
10399 assert . ok ( true , 'Deprecation did not raise' ) ;
104100 } ) ;
105101
102+ // eslint-disable-next-line qunit/require-expect
106103 test ( 'deprecation logs with string matcher' , function ( assert ) {
107104 assert . expect ( 1 ) ;
108105
@@ -111,7 +108,7 @@ module('handleDeprecationWorkflow', function (hooks) {
111108 assert . strictEqual (
112109 passedMessage . indexOf ( 'DEPRECATION: ' + message ) ,
113110 0 ,
114- 'deprecation logs'
111+ 'deprecation logs' ,
115112 ) ;
116113 } ;
117114
@@ -128,7 +125,7 @@ module('handleDeprecationWorkflow', function (hooks) {
128125 id : 'interesting' ,
129126 for : 'testing' ,
130127 } ,
131- ( ) => { }
128+ ( ) => { } ,
132129 ) ;
133130 } ) ;
134131
@@ -147,7 +144,7 @@ module('handleDeprecationWorkflow', function (hooks) {
147144 until : 'forever' ,
148145 for : 'testing' ,
149146 } ,
150- ( ) => { }
147+ ( ) => { } ,
151148 ) ;
152149 } , 'deprecation throws' ) ;
153150 } ) ;
@@ -166,22 +163,23 @@ module('handleDeprecationWorkflow', function (hooks) {
166163 until : 'forever' ,
167164 for : 'testing' ,
168165 } ,
169- ( ) => { }
166+ ( ) => { } ,
170167 ) ;
171168
172169 assert . ok ( true , 'Deprecation did not raise' ) ;
173170 } ) ;
174171
172+ // eslint-disable-next-line qunit/require-expect
175173 test ( 'deprecation logs with regex matcher' , function ( assert ) {
176174 assert . expect ( 1 ) ;
177175
178176 let message = 'Interesting' ;
179177
180178 console . warn = function ( passedMessage ) {
181- assert . equal (
179+ assert . strictEqual (
182180 passedMessage ,
183181 'DEPRECATION: ' + message ,
184- 'deprecation logs'
182+ 'deprecation logs' ,
185183 ) ;
186184 } ;
187185
@@ -198,7 +196,7 @@ module('handleDeprecationWorkflow', function (hooks) {
198196 until : 'forever' ,
199197 for : 'testing' ,
200198 } ,
201- ( ) => { }
199+ ( ) => { } ,
202200 ) ;
203201 } ) ;
204202
@@ -217,7 +215,7 @@ module('handleDeprecationWorkflow', function (hooks) {
217215 until : 'forever' ,
218216 for : 'testing' ,
219217 } ,
220- ( ) => { }
218+ ( ) => { } ,
221219 ) ;
222220 } , 'deprecation throws' ) ;
223221 } ) ;
@@ -240,7 +238,7 @@ module('handleDeprecationWorkflow', function (hooks) {
240238 until : 'forever' ,
241239 for : 'testing' ,
242240 } ,
243- ( ) => { }
241+ ( ) => { } ,
244242 ) ;
245243 } , 'deprecation throws' ) ;
246244 } ) ;
@@ -259,22 +257,23 @@ module('handleDeprecationWorkflow', function (hooks) {
259257 until : '3.0.0' ,
260258 for : 'testing' ,
261259 } ,
262- ( ) => { }
260+ ( ) => { } ,
263261 ) ;
264262
265263 assert . ok ( true , 'Deprecation did not raise' ) ;
266264 } ) ;
267265
266+ // eslint-disable-next-line qunit/require-expect
268267 test ( 'deprecation logs with id matcher' , function ( assert ) {
269268 assert . expect ( 1 ) ;
270269
271270 let message = 'Slightly interesting' ;
272271
273272 console . warn = function ( passedMessage ) {
274- assert . equal (
273+ assert . strictEqual (
275274 passedMessage ,
276275 'DEPRECATION: ' + message ,
277- 'deprecation logs'
276+ 'deprecation logs' ,
278277 ) ;
279278 } ;
280279
@@ -291,7 +290,7 @@ module('handleDeprecationWorkflow', function (hooks) {
291290 until : '3.0.0' ,
292291 for : 'testing' ,
293292 } ,
294- ( ) => { }
293+ ( ) => { } ,
295294 ) ;
296295 } ) ;
297296
@@ -309,7 +308,7 @@ module('handleDeprecationWorkflow', function (hooks) {
309308 until : '3.0.0' ,
310309 for : 'testing' ,
311310 } ,
312- ( ) => { }
311+ ( ) => { } ,
313312 ) ;
314313 } , 'deprecation throws' ) ;
315314 } ) ;
0 commit comments