Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Nov 5, 2024
1 parent ba9e9c1 commit a6c63e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion site/app/templates/application.gts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pageTitle from 'ember-page-title/helpers/page-title';
import DocfyHeader from '../components/docfy/docfy-header';
import DocfyJumpTo from '../components/docfy/docfy-jump-to';
import { VisuallyHidden } from '@frontile/utilities';
import { Portal } from '@frontile/overlays/components/portal'
import { Portal } from '@frontile/overlays/components/portal';

const application = <template>
{{pageTitle "Frontile"}}
Expand Down
28 changes: 14 additions & 14 deletions test-app/tests/integration/components/overlays/drawer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import hbs from 'htmlbars-inline-precompile';
import { registerCustomStyles } from '@frontile/theme';
import { tv } from 'tailwind-variants';

module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
module('Integration | Component | @frontile/overlays/Drawer', function (hooks) {
setupRenderingTest(hooks);

registerCustomStyles({
Expand Down Expand Up @@ -132,7 +132,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
</Drawer>
`;

test('it renders, header, body, footer, and close-btn', async function(assert) {
test('it renders, header, body, footer, and close-btn', async function (assert) {
this.set('isOpen', true);
await render(template);

Expand All @@ -143,7 +143,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"] .drawer__close-btn').hasText('Close');
});

test('it renders accessibility attributes', async function(assert) {
test('it renders accessibility attributes', async function (assert) {
this.set('isOpen', true);
await render(template);

Expand All @@ -158,7 +158,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
.hasAttribute('id', ariaLablledBy);
});

test('it adds modifier class for size', async function(assert) {
test('it adds modifier class for size', async function (assert) {
this.set('isOpen', true);
await render(template);
assert.dom('[data-test-id="drawer"]').hasClass('drawer--md-horizontal');
Expand Down Expand Up @@ -186,7 +186,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').hasClass('drawer--lg-vertical');
});

test('it adds modifier class for placement', async function(assert) {
test('it adds modifier class for placement', async function (assert) {
this.set('isOpen', true);

await render(template);
Expand All @@ -202,7 +202,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').hasClass('drawer--left');
});

test('it closes drawer when close button is clicked', async function(assert) {
test('it closes drawer when close button is clicked', async function (assert) {
assert.expect(3);

this.set('disableTransitions', true);
Expand All @@ -221,7 +221,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').doesNotExist();
});

test('it does not render close button when @allowCloseButton=false', async function(assert) {
test('it does not render close button when @allowCloseButton=false', async function (assert) {
this.set('disableTransitions', true);
this.set('isOpen', true);
this.set('allowCloseButton', false);
Expand All @@ -236,7 +236,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"] .drawer__close-btn').doesNotExist();
});

test('it closes drawer when backdrop is clicked', async function(assert) {
test('it closes drawer when backdrop is clicked', async function (assert) {
assert.expect(3);

this.set('disableTransitions', true);
Expand All @@ -254,7 +254,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').doesNotExist();
});

test('when @closeOnOutsideClick={{false}} does not close drawer', async function(assert) {
test('when @closeOnOutsideClick={{false}} does not close drawer', async function (assert) {
assert.expect(1);

this.set('closeOnOutsideClick', false);
Expand All @@ -270,7 +270,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').exists();
});

test('it closes drawer when pressing Escape', async function(assert) {
test('it closes drawer when pressing Escape', async function (assert) {
assert.expect(2);

this.set('isOpen', true);
Expand All @@ -285,7 +285,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').doesNotExist();
});

test('when @closeOnEscapeKey={{false}} does not close drawer', async function(assert) {
test('when @closeOnEscapeKey={{false}} does not close drawer', async function (assert) {
assert.expect(1);

this.set('closeOnEscapeKey', false);
Expand All @@ -301,7 +301,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').exists();
});

test('when @allowClosing={{false}} does not close drawer', async function(assert) {
test('when @allowClosing={{false}} does not close drawer', async function (assert) {
assert.expect(4);

this.set('allowClosing', false);
Expand All @@ -324,7 +324,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]').exists();
});

test('when @renderInPlace={{true}} renders in place', async function(assert) {
test('when @renderInPlace={{true}} renders in place', async function (assert) {
this.set('renderInPlace', true);
this.set('isOpen', true);

Expand All @@ -334,7 +334,7 @@ module('Integration | Component | @frontile/overlays/Drawer', function(hooks) {
assert.dom('[data-test-id="drawer"]', this.element).exists();
});

test('it executes onOpen when drawer is opened', async function(assert) {
test('it executes onOpen when drawer is opened', async function (assert) {
assert.expect(1);
this.set('isOpen', true);
this.set('onOpen', () => {
Expand Down

0 comments on commit a6c63e0

Please sign in to comment.