Skip to content

Commit 7b35b9a

Browse files
committed
<auto> run yarn lint:fix
1 parent 3de4a02 commit 7b35b9a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

tests/integration/components/bs-alert-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module('Integration | Component | bs-alert', function (hooks) {
156156

157157
await click('button.close');
158158

159-
assert.equal(this.visible, true, 'Does not modify visible property');
159+
assert.true(this.visible, 'Does not modify visible property');
160160
});
161161

162162
test('it passes accessibility checks', async function (assert) {

tests/integration/components/bs-dropdown-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ module('Integration | Component | bs-dropdown', function (hooks) {
330330

331331
await click('a.dropdown-toggle');
332332
assert.ok(isVisible(this.element.querySelector('.dropdown-menu a')));
333-
assert.ok(this.element.querySelector('.dropdown-menu').offsetParent !== null);
333+
assert.notStrictEqual(this.element.querySelector('.dropdown-menu').offsetParent, null);
334334
});
335335

336336
test('dropdown menu can be rendered in a wormhole', async function (assert) {

tests/integration/components/bs-form-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ module('Integration | Component | bs-form', function (hooks) {
11001100
this.set('model', undefined);
11011101
this.set('submitHandler', (model) => {
11021102
assert.step('submit action on untouched form');
1103-
assert.ok(typeof model === 'object');
1103+
assert.strictEqual(typeof model, 'object');
11041104
});
11051105
await render(hbs`
11061106
<BsForm @model={{this.model}} @onSubmit={{this.submitHandler}} as |form|>

tests/integration/components/bs-modal-simple-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ module('Integration | Component | bs-modal-simple', function (hooks) {
526526

527527
this.set('renderComponent', false);
528528

529-
assert.ok(!document.body.classList.contains('modal-open'), 'body element does not have "modal-open" class.');
529+
assert.notOk(document.body.classList.contains('modal-open'), 'body element does not have "modal-open" class.');
530530
});
531531

532532
test('Resets scroll bar when component is removed from view', async function (assert) {
@@ -579,7 +579,7 @@ module('Integration | Component | bs-modal-simple', function (hooks) {
579579
hbs`<BsModalSimple @title="Simple Dialog" @fade={{false}} @open={{this.open}}>Hello world!</BsModalSimple>`
580580
);
581581
await click('.modal .modal-header .close');
582-
assert.equal(this.open, true, 'DOes not change open property');
582+
assert.true(this.open, 'DOes not change open property');
583583
});
584584

585585
testNotBS3('modal can be centered vertically', async function (assert) {

tests/integration/components/bs-nav/item-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module('Integration | Component | bs-nav/item', function (hooks) {
2626

2727
assert.dom('*').hasText('template block text', 'Shows block content');
2828
assert.dom('li').exists({ count: 1 }, 'it is an list item');
29-
assert.ok(!this.element.querySelector('li').classList.contains('active'), 'has not active class');
30-
assert.ok(!this.element.querySelector('li').classList.contains('disabled'), 'has not disabled class');
29+
assert.notOk(this.element.querySelector('li').classList.contains('active'), 'has not active class');
30+
assert.notOk(this.element.querySelector('li').classList.contains('disabled'), 'has not disabled class');
3131
});
3232

3333
test('it does not have aria role="presentation"', async function (assert) {

tests/integration/components/bs-navbar-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ module('Integration | Component | bs-navbar', function (hooks) {
347347
`);
348348

349349
await click('button');
350-
assert.equal(this.collapsed, true, 'collapse property did not change');
350+
assert.true(this.collapsed, 'collapse property did not change');
351351
});
352352

353353
test('Navbar yields collapse action', async function (assert) {

tests/unit/helpers/bs-contains-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { module, test } from 'qunit';
33

44
module('Unit | Helper | bs contains', function () {
55
test('it works', function (assert) {
6-
assert.equal(bsContains([[42, 3, 15], 3]), true);
7-
assert.equal(bsContains([[42, 3, 15], 4]), false);
8-
assert.equal(bsContains([4, 4]), false);
6+
assert.true(bsContains([[42, 3, 15], 3]));
7+
assert.false(bsContains([[42, 3, 15], 4]));
8+
assert.false(bsContains([4, 4]));
99
});
1010
});

0 commit comments

Comments
 (0)