Skip to content

Commit

Permalink
fix(release): fix release by pushing linted file (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
karelhala authored Feb 13, 2024
1 parent 4e20e52 commit 03bc9a6
Showing 1 changed file with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,67 +27,67 @@ describe('src/utils/AlertUtils', () => {
it('Add notifications calls the store with the notification', () => {
addNotification(NotificationType.INFO, 'foo', 'bar');
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar',
})
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar'
})
}));
});

it('Add notifications accepts dismissable', () => {
addNotification(NotificationType.INFO, 'foo', 'bar', true);
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar',
dismissable: true,
})
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar',
dismissable: true
})
}));
});

it('addSuccessNotification creates a notification action with "success"', () => {
addSuccessNotification('foo', 'bar');
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'success',
title: 'foo',
description: 'bar',
})
payload: expect.objectContaining({
variant: 'success',
title: 'foo',
description: 'bar'
})
}));
});

it('addSuccessNotification creates a notification action with "info"', () => {
addInfoNotification('foo', 'bar');
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar',
})
payload: expect.objectContaining({
variant: 'info',
title: 'foo',
description: 'bar'
})
}));
});

it('addSuccessNotification creates a notification action with "warning"', () => {
addWarningNotification('foo', 'bar');
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'warning',
title: 'foo',
description: 'bar',
})
payload: expect.objectContaining({
variant: 'warning',
title: 'foo',
description: 'bar'
})
}));
});

it('addSuccessNotification creates a notification action with "danger"', () => {
addDangerNotification('foo', 'bar');
expect(dispatch).toHaveBeenCalledWith(expect.objectContaining({
payload: expect.objectContaining({
variant: 'danger',
title: 'foo',
description: 'bar',
})
payload: expect.objectContaining({
variant: 'danger',
title: 'foo',
description: 'bar'
})
}));
});

Expand Down

0 comments on commit 03bc9a6

Please sign in to comment.