Skip to content

Commit

Permalink
feat(GlobalBanner): add default type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-gendron committed Oct 7, 2021
1 parent cb77049 commit 155639a
Show file tree
Hide file tree
Showing 4 changed files with 552 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultActionButton: ActionButton = {
onClick: jest.fn(),
};

const messageTypesArray: MessageType[] = ['alert', 'warning', 'info'];
const messageTypesArray: MessageType[] = ['alert', 'warning', 'info', 'default'];

describe('GlobalBanner', () => {
messageTypesArray.forEach((type) => {
Expand Down Expand Up @@ -44,7 +44,6 @@ describe('GlobalBanner', () => {
onClick: callback,
}}
label="Test"
type="warning"
>
Test
</GlobalBanner>,
Expand All @@ -60,7 +59,6 @@ describe('GlobalBanner', () => {
<GlobalBanner
actionButton={defaultActionButton}
label="Test"
type="warning"
>
WARNING! test test
</GlobalBanner>,
Expand Down Expand Up @@ -88,7 +86,6 @@ describe('GlobalBanner', () => {
const wrapper = mountWithTheme(
<GlobalBanner
label="Test"
type="info"
isDismissable={false}
>
Test content
Expand All @@ -104,7 +101,6 @@ describe('GlobalBanner', () => {
<GlobalBanner
actionButton={defaultActionButton}
label="Test"
type="warning"
hidden
>
WARNING! test test
Expand All @@ -119,7 +115,6 @@ describe('GlobalBanner', () => {
<GlobalBanner
actionButton={defaultActionButton}
label="Test"
type="warning"
>
WARNING! test test
</GlobalBanner>,
Expand Down
Loading

0 comments on commit 155639a

Please sign in to comment.