dg-npm-templates
Version:
Npx generator for react app dependency creation by digite
22 lines (20 loc) • 716 B
JavaScript
import { BOARD_MESSAGE_CONSTANT } from 'js/modules/message/constants/MessageConstants';
import * as actions from 'js/modules/message/actions/MessageActions';
describe('MessageActions', () => {
describe('showMessage', () => {
it('It shows message box', () => {
expect( actions.showMessage({}) ).toEqual( {
type: BOARD_MESSAGE_CONSTANT.SHOW_MESSAGE,
config: {}
} );
});
});
describe('hideMessage', () => {
it('It hides message box', () => {
expect( actions.hideMessage({}) ).toEqual( {
type: BOARD_MESSAGE_CONSTANT.HIDE_MESSAGE,
config: {}
} );
});
});
});