Skip to content

Commit

Permalink
fixup! fixup! Test(web): Add tests for Toast component
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Mar 6, 2024
1 parent 6d0ed55 commit 31d2a51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web/src/js/__tests__/Toast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const testId = 'toast-test';

const toastHtmlClosed = `
<div id="${testId}" class="ToastBar ToastBar--success ToastBar--dismissible is-hidden">
<button type="button" data-spirit-target="#toast-test" aria-expanded="false">Close</button>
<button type="button" data-spirit-target="#${testId}" aria-expanded="false">Close</button>
</div>
`;

const toastHtmlOpened = `
<div id="toast-test" class="ToastBar ToastBar--success ToastBar--dismissible is-open">
<button type="button" data-spirit-target="#toast-test" aria-expanded="true">Close</button>
<div id="${testId}" class="ToastBar ToastBar--success ToastBar--dismissible is-open">
<button type="button" data-spirit-target="#${testId}" aria-expanded="true">Close</button>
</div>
`;

Expand Down

0 comments on commit 31d2a51

Please sign in to comment.