Skip to content

Commit

Permalink
fix: address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daneah committed Jan 4, 2024
1 parent dc251a5 commit 7357d63
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const Validity = {
},
};

export const isOnBackground = {
export const IsOnBackground = {
name: 'On background',
render: () => (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const Validity = {
},
};

export const isOnBackground = {
export const IsOnBackground = {
name: 'On background',
render: () =>
html`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const FullWidth = {
),
};

export const isOnBackground = {
export const IsOnBackground = {
render: () => (
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const FullWidth = {
},
};

export const isOnBackground = {
export const IsOnBackground = {
render: () => {
const effect = () => {
useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions packages/pharos/src/components/toast/pharos-toast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ describe('pharos-toast', () => {
});

it('fires a custom event pharos-toast-close after closing', async () => {
let detail = null;
let actualId = '';
const handleClose = (e: Event): void => {
detail = (e as CustomEvent).detail;
actualId = (e as CustomEvent).detail.id;
};
component.addEventListener('pharos-toast-close', handleClose);

Expand All @@ -81,6 +81,6 @@ describe('pharos-toast', () => {
await component.updateComplete;
await aTimeout(500);

expect((detail as any).id === component.id).to.be.true;
expect(actualId === component.id).to.be.true;
});
});

0 comments on commit 7357d63

Please sign in to comment.