From fd08e6511097f8c40a90861e260e5ea1aea8ea54 Mon Sep 17 00:00:00 2001 From: mathieupoteriepeopledoc Date: Thu, 30 Aug 2018 16:52:55 +0200 Subject: [PATCH] deleted used try catch instead of assert.throw --- tests/integration/bind-data-test-attributes-test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/bind-data-test-attributes-test.js b/tests/integration/bind-data-test-attributes-test.js index ce4568ef..ac4f15f1 100644 --- a/tests/integration/bind-data-test-attributes-test.js +++ b/tests/integration/bind-data-test-attributes-test.js @@ -13,11 +13,14 @@ moduleForComponent( if (!config.stripTestSelectors) { test('It throws an error when a data-test-attribute is added on a tagless component', function(assert) { assert.expect(1); - assert.expectAssertion(() => { + try { this.render( hbs`{{data-test-component tagName='' data-test-attribute=true}}` ); - }); + assert.ok(false, 'this should not be called'); + } catch (e) { + assert.ok(true, 'this is called'); + } }); } else { test('it doest not throw an error when stripTestSelectors is set to true in the config', function(assert) {