From da913b716c3e2afcb536c1154ad1bececaa49d5e Mon Sep 17 00:00:00 2001 From: snewcomer Date: Mon, 12 Mar 2018 09:21:10 -0700 Subject: [PATCH 1/2] call verifySteps at end of all tests --- tests/unit/dom/blur-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/dom/blur-test.js b/tests/unit/dom/blur-test.js index 9efa4d87a..e6cc408f3 100644 --- a/tests/unit/dom/blur-test.js +++ b/tests/unit/dom/blur-test.js @@ -61,6 +61,7 @@ module('DOM Helper: blur', function(hooks) { blur(`#foo-bar-baz-not-here-ever-bye-bye`), /Element not found when calling `blur\('#foo-bar-baz-not-here-ever-bye-bye'\)`/ ); + assert.verifySteps([]); }); test('bluring via selector with context set', async function(assert) { @@ -76,6 +77,7 @@ module('DOM Helper: blur', function(hooks) { blur(`#${elementWithFocus.id}`), /Must setup rendering context before attempting to interact with elements/ ); + assert.verifySteps([]); }); test('bluring via element with context set', async function(assert) { From c232fe5dfbfbe3f97f06cdd67ab7d94ef1617083 Mon Sep 17 00:00:00 2001 From: snewcomer Date: Mon, 12 Mar 2018 09:31:34 -0700 Subject: [PATCH 2/2] hm --- tests/unit/dom/blur-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/dom/blur-test.js b/tests/unit/dom/blur-test.js index e6cc408f3..e61520431 100644 --- a/tests/unit/dom/blur-test.js +++ b/tests/unit/dom/blur-test.js @@ -57,11 +57,11 @@ module('DOM Helper: blur', function(hooks) { test('rejects if selector is not found', async function(assert) { await setupContext(context); + assert.verifySteps([]); assert.rejects( blur(`#foo-bar-baz-not-here-ever-bye-bye`), /Element not found when calling `blur\('#foo-bar-baz-not-here-ever-bye-bye'\)`/ ); - assert.verifySteps([]); }); test('bluring via selector with context set', async function(assert) { @@ -73,11 +73,11 @@ module('DOM Helper: blur', function(hooks) { }); test('bluring via selector without context set', function(assert) { + assert.verifySteps([]); assert.rejects( blur(`#${elementWithFocus.id}`), /Must setup rendering context before attempting to interact with elements/ ); - assert.verifySteps([]); }); test('bluring via element with context set', async function(assert) {