Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samwisekind committed Oct 27, 2024
1 parent 08365ba commit 30ea690
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Loading/Loading.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
100% { transform: translateY(0); }
}

animation: whale 1s infinite $global-transition-ease-in-out-quart;
animation: whale 2s infinite $global-transition-ease-in-out-quart;
transform-box: fill-box;
transform-origin: center;
animation-delay: -0.7s;
animation-delay: 0s;
}
24 changes: 24 additions & 0 deletions src/components/Toolbar/Toolbar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@ it('Passes accessibility with default props', async () => act(async () => {
<Toolbar
// @ts-expect-error String of enum value
type="bottlenose-dolphin"
previous={null}
next={null}
/>,
);

const results = await axe(container);

expect(results).toHaveNoViolations();
}));

it('Passes accessibility with optional props', async () => act(async () => {
const mockedData = {
id: 'mocked-id',
reference: 'mocked-reference',
name: 'mocked-name',
slug: 'mocked slug',
};

const { container } = render(
<Toolbar
// @ts-expect-error String of enum value
type="bottlenose-dolphin"
previous={mockedData}
next={mockedData}
/>,
);

Expand Down

0 comments on commit 30ea690

Please sign in to comment.