Skip to content

Commit

Permalink
<auto> run yarn lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Nov 6, 2024
1 parent 3de4a02 commit 7b35b9a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/integration/components/bs-alert-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ module('Integration | Component | bs-alert', function (hooks) {

await click('button.close');

assert.equal(this.visible, true, 'Does not modify visible property');
assert.true(this.visible, 'Does not modify visible property');
});

test('it passes accessibility checks', async function (assert) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/components/bs-dropdown-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ module('Integration | Component | bs-dropdown', function (hooks) {

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

test('dropdown menu can be rendered in a wormhole', async function (assert) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/components/bs-form-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ module('Integration | Component | bs-form', function (hooks) {
this.set('model', undefined);
this.set('submitHandler', (model) => {
assert.step('submit action on untouched form');
assert.ok(typeof model === 'object');
assert.strictEqual(typeof model, 'object');
});
await render(hbs`
<BsForm @model={{this.model}} @onSubmit={{this.submitHandler}} as |form|>
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/components/bs-modal-simple-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ module('Integration | Component | bs-modal-simple', function (hooks) {

this.set('renderComponent', false);

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

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

testNotBS3('modal can be centered vertically', async function (assert) {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/components/bs-nav/item-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ module('Integration | Component | bs-nav/item', function (hooks) {

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

test('it does not have aria role="presentation"', async function (assert) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/components/bs-navbar-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ module('Integration | Component | bs-navbar', function (hooks) {
`);

await click('button');
assert.equal(this.collapsed, true, 'collapse property did not change');
assert.true(this.collapsed, 'collapse property did not change');
});

test('Navbar yields collapse action', async function (assert) {
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/helpers/bs-contains-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { module, test } from 'qunit';

module('Unit | Helper | bs contains', function () {
test('it works', function (assert) {
assert.equal(bsContains([[42, 3, 15], 3]), true);
assert.equal(bsContains([[42, 3, 15], 4]), false);
assert.equal(bsContains([4, 4]), false);
assert.true(bsContains([[42, 3, 15], 3]));
assert.false(bsContains([[42, 3, 15], 4]));
assert.false(bsContains([4, 4]));
});
});

0 comments on commit 7b35b9a

Please sign in to comment.