Skip to content

Commit 2da515d

Browse files
committed
test: prevent false positives
1 parent 0d464a1 commit 2da515d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/handle-deprecation-workflow-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ module('handleDeprecationWorkflow', function (hooks) {
8787

8888
test('deprecation silenced with string matcher', function (assert) {
8989
const config = {
90+
throwOnUnhandled: true,
9091
workflow: [{ matchMessage: 'Interesting', handler: 'silence' }],
9192
};
9293

@@ -113,6 +114,7 @@ module('handleDeprecationWorkflow', function (hooks) {
113114
};
114115

115116
const config = {
117+
throwOnUnhandled: true,
116118
workflow: [{ matchMessage: message, handler: 'log' }],
117119
};
118120

@@ -151,6 +153,7 @@ module('handleDeprecationWorkflow', function (hooks) {
151153

152154
test('deprecation silenced with regex matcher', function (assert) {
153155
const config = {
156+
throwOnUnhandled: true,
154157
workflow: [{ matchMessage: /Inter/, handler: 'silence' }],
155158
};
156159

@@ -184,6 +187,7 @@ module('handleDeprecationWorkflow', function (hooks) {
184187
};
185188

186189
const config = {
190+
throwOnUnhandled: true,
187191
workflow: [{ matchMessage: /Inter/, handler: 'log' }],
188192
};
189193

@@ -245,6 +249,7 @@ module('handleDeprecationWorkflow', function (hooks) {
245249

246250
test('deprecation silenced with id matcher', function (assert) {
247251
const config = {
252+
throwOnUnhandled: true,
248253
workflow: [{ matchId: 'ember.deprecation-workflow', handler: 'silence' }],
249254
};
250255

@@ -278,6 +283,7 @@ module('handleDeprecationWorkflow', function (hooks) {
278283
};
279284

280285
const config = {
286+
throwOnUnhandled: true,
281287
workflow: [{ matchId: 'ember.deprecation-workflow', handler: 'log' }],
282288
};
283289

0 commit comments

Comments
 (0)