diff --git a/.eslintrc.js b/.eslintrc.js index e1d3ba7ba..7b62b610a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -73,6 +73,9 @@ module.exports = { // Test files: files: ['tests/**/*-test.{js,ts}'], extends: ['plugin:qunit/recommended'], + rules: { + 'qunit/require-expect': 'warn', + }, }, ], }; diff --git a/tests/integration/components/bs-dropdown-test.js b/tests/integration/components/bs-dropdown-test.js index 20ea26677..2ba59e521 100644 --- a/tests/integration/components/bs-dropdown-test.js +++ b/tests/integration/components/bs-dropdown-test.js @@ -569,6 +569,7 @@ module('Integration | Component | bs-dropdown', function (hooks) { } module('in place', function (hooks) { + // eslint-disable-next-line qunit/no-hooks-from-ancestor-modules hooks.beforeEach(function () { this.renderInPlace = true; }); @@ -576,6 +577,7 @@ module('Integration | Component | bs-dropdown', function (hooks) { }); module('in wormhole', function () { + // eslint-disable-next-line qunit/no-hooks-from-ancestor-modules hooks.beforeEach(function () { this.renderInPlace = false; }); diff --git a/tests/integration/components/bs-modal/footer-test.js b/tests/integration/components/bs-modal/footer-test.js index 7f885b09d..47e701648 100644 --- a/tests/integration/components/bs-modal/footer-test.js +++ b/tests/integration/components/bs-modal/footer-test.js @@ -15,7 +15,7 @@ module('Integration | Component | bs-modal/footer', function (hooks) { assert.dom('.modal-footer').exists({ count: 1 }, 'Modal footer exists.'); assert.dom('.modal-footer button').exists({ count: 1 }, 'Modal has button.'); assert.dom('.modal-footer button').hasClass('btn-primary', 'Button is a primary button.'); - assert.ok( + assert.strictEqual( this.element.querySelector('.modal-footer button').getAttribute('type'), 'button', 'Submit button is of type submit.' @@ -28,14 +28,14 @@ module('Integration | Component | bs-modal/footer', function (hooks) { assert.dom('.modal-footer button').exists({ count: 2 }, 'Modal footer has two button.'); assert.dom('.modal-footer button:first-child').hasClass(defaultButtonClass(), 'Close button is a default button.'); - assert.ok( + assert.strictEqual( this.element.querySelector('.modal-footer button:first-child').getAttribute('type'), 'button', 'Submit button is of type submit.' ); assert.dom('.modal-footer button:first-child').hasText('close', 'Close button title is correct.'); assert.dom('.modal-footer button:last-child').hasClass('btn-primary', 'Submit button is a primary button.'); - assert.ok( + assert.strictEqual( this.element.querySelector('.modal-footer button:last-child').getAttribute('type'), 'submit', 'Submit button is of type submit.' diff --git a/tests/integration/components/bs-tooltip-test.js b/tests/integration/components/bs-tooltip-test.js index 33c626855..6df4949b2 100644 --- a/tests/integration/components/bs-tooltip-test.js +++ b/tests/integration/components/bs-tooltip-test.js @@ -342,19 +342,6 @@ module('Integration | Component | bs-tooltip', function (hooks) { assert.ok(isVisible(this.element.querySelector('.tooltip')), '200ms: tooltip is faded in'); }); - test('should not show tooltip if leave event occurs before delay expires', async function (assert) { - await render(hbs`