mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 10:48:12 +00:00
25 lines
556 B
JavaScript
25 lines
556 B
JavaScript
import expect from 'expect';
|
|
import {
|
|
showNotification,
|
|
} from '../actions';
|
|
import {
|
|
SHOW_NOTIFICATION,
|
|
} from '../constants';
|
|
|
|
describe('NotificationProvider actions', () => {
|
|
describe('Default Action', () => {
|
|
it('has a type of SHOW_NOTIFICATION', () => {
|
|
const message = 'Well done!';
|
|
const status = 'success';
|
|
|
|
const expected = {
|
|
type: SHOW_NOTIFICATION,
|
|
message,
|
|
status,
|
|
id: 1,
|
|
};
|
|
expect(showNotification(expected.message, expected.status)).toEqual(expected);
|
|
});
|
|
});
|
|
});
|