@@ -28,8 +28,6 @@ module('handleDeprecationWorkflow', function (hooks) {
28
28
} ) ;
29
29
30
30
test ( 'specifying `throwOnUnhandled` as true raises' , function ( assert ) {
31
- assert . expect ( 2 ) ;
32
-
33
31
const config = {
34
32
throwOnUnhandled : true ,
35
33
workflow : [ { handler : 'silence' , matchMessage : 'Sshhhhh!!' } ] ,
@@ -46,11 +44,11 @@ module('handleDeprecationWorkflow', function (hooks) {
46
44
id : 'foobar' ,
47
45
for : 'testing' ,
48
46
} ,
49
- ( ) => { }
47
+ ( ) => { } ,
50
48
) ;
51
49
} ,
52
50
/ 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' ,
54
52
) ;
55
53
56
54
handleDeprecationWorkflow (
@@ -62,14 +60,12 @@ module('handleDeprecationWorkflow', function (hooks) {
62
60
until : 'forever' ,
63
61
for : 'testing' ,
64
62
} ,
65
- ( ) => { }
63
+ ( ) => { } ,
66
64
) ;
67
65
assert . ok ( true , 'did not throw when silenced' ) ;
68
66
} ) ;
69
67
70
68
test ( 'specifying `throwOnUnhandled` as false does nothing' , function ( assert ) {
71
- assert . expect ( 1 ) ;
72
-
73
69
const config = {
74
70
throwOnUnhandled : false ,
75
71
} ;
@@ -83,7 +79,7 @@ module('handleDeprecationWorkflow', function (hooks) {
83
79
until : 'forever' ,
84
80
for : 'testing' ,
85
81
} ,
86
- ( ) => { }
82
+ ( ) => { } ,
87
83
) ;
88
84
89
85
assert . ok ( true , 'does not die when throwOnUnhandled is false' ) ;
@@ -103,6 +99,7 @@ module('handleDeprecationWorkflow', function (hooks) {
103
99
assert . ok ( true , 'Deprecation did not raise' ) ;
104
100
} ) ;
105
101
102
+ // eslint-disable-next-line qunit/require-expect
106
103
test ( 'deprecation logs with string matcher' , function ( assert ) {
107
104
assert . expect ( 1 ) ;
108
105
@@ -111,7 +108,7 @@ module('handleDeprecationWorkflow', function (hooks) {
111
108
assert . strictEqual (
112
109
passedMessage . indexOf ( 'DEPRECATION: ' + message ) ,
113
110
0 ,
114
- 'deprecation logs'
111
+ 'deprecation logs' ,
115
112
) ;
116
113
} ;
117
114
@@ -128,7 +125,7 @@ module('handleDeprecationWorkflow', function (hooks) {
128
125
id : 'interesting' ,
129
126
for : 'testing' ,
130
127
} ,
131
- ( ) => { }
128
+ ( ) => { } ,
132
129
) ;
133
130
} ) ;
134
131
@@ -147,7 +144,7 @@ module('handleDeprecationWorkflow', function (hooks) {
147
144
until : 'forever' ,
148
145
for : 'testing' ,
149
146
} ,
150
- ( ) => { }
147
+ ( ) => { } ,
151
148
) ;
152
149
} , 'deprecation throws' ) ;
153
150
} ) ;
@@ -166,22 +163,23 @@ module('handleDeprecationWorkflow', function (hooks) {
166
163
until : 'forever' ,
167
164
for : 'testing' ,
168
165
} ,
169
- ( ) => { }
166
+ ( ) => { } ,
170
167
) ;
171
168
172
169
assert . ok ( true , 'Deprecation did not raise' ) ;
173
170
} ) ;
174
171
172
+ // eslint-disable-next-line qunit/require-expect
175
173
test ( 'deprecation logs with regex matcher' , function ( assert ) {
176
174
assert . expect ( 1 ) ;
177
175
178
176
let message = 'Interesting' ;
179
177
180
178
console . warn = function ( passedMessage ) {
181
- assert . equal (
179
+ assert . strictEqual (
182
180
passedMessage ,
183
181
'DEPRECATION: ' + message ,
184
- 'deprecation logs'
182
+ 'deprecation logs' ,
185
183
) ;
186
184
} ;
187
185
@@ -198,7 +196,7 @@ module('handleDeprecationWorkflow', function (hooks) {
198
196
until : 'forever' ,
199
197
for : 'testing' ,
200
198
} ,
201
- ( ) => { }
199
+ ( ) => { } ,
202
200
) ;
203
201
} ) ;
204
202
@@ -217,7 +215,7 @@ module('handleDeprecationWorkflow', function (hooks) {
217
215
until : 'forever' ,
218
216
for : 'testing' ,
219
217
} ,
220
- ( ) => { }
218
+ ( ) => { } ,
221
219
) ;
222
220
} , 'deprecation throws' ) ;
223
221
} ) ;
@@ -240,7 +238,7 @@ module('handleDeprecationWorkflow', function (hooks) {
240
238
until : 'forever' ,
241
239
for : 'testing' ,
242
240
} ,
243
- ( ) => { }
241
+ ( ) => { } ,
244
242
) ;
245
243
} , 'deprecation throws' ) ;
246
244
} ) ;
@@ -259,22 +257,23 @@ module('handleDeprecationWorkflow', function (hooks) {
259
257
until : '3.0.0' ,
260
258
for : 'testing' ,
261
259
} ,
262
- ( ) => { }
260
+ ( ) => { } ,
263
261
) ;
264
262
265
263
assert . ok ( true , 'Deprecation did not raise' ) ;
266
264
} ) ;
267
265
266
+ // eslint-disable-next-line qunit/require-expect
268
267
test ( 'deprecation logs with id matcher' , function ( assert ) {
269
268
assert . expect ( 1 ) ;
270
269
271
270
let message = 'Slightly interesting' ;
272
271
273
272
console . warn = function ( passedMessage ) {
274
- assert . equal (
273
+ assert . strictEqual (
275
274
passedMessage ,
276
275
'DEPRECATION: ' + message ,
277
- 'deprecation logs'
276
+ 'deprecation logs' ,
278
277
) ;
279
278
} ;
280
279
@@ -291,7 +290,7 @@ module('handleDeprecationWorkflow', function (hooks) {
291
290
until : '3.0.0' ,
292
291
for : 'testing' ,
293
292
} ,
294
- ( ) => { }
293
+ ( ) => { } ,
295
294
) ;
296
295
} ) ;
297
296
@@ -309,7 +308,7 @@ module('handleDeprecationWorkflow', function (hooks) {
309
308
until : '3.0.0' ,
310
309
for : 'testing' ,
311
310
} ,
312
- ( ) => { }
311
+ ( ) => { } ,
313
312
) ;
314
313
} , 'deprecation throws' ) ;
315
314
} ) ;
0 commit comments