app/react/Templates/actions/specs/uiActions.spec.js
import * as actions from '../uiActions';
import * as types from '../actionTypes';
describe('uiActions', () => {
describe('editProperty()', () => {
it('should return an EDIT_PROPERTY action with the id', () => {
const action = actions.editProperty('id');
expect(action).toEqual({ type: types.EDIT_PROPERTY, id: 'id' });
});
});
describe('setThesauris()', () => {
it('should return a SET_THESAURI action with the thesauri', () => {
const action = actions.setThesauris('thesauris');
expect(action).toEqual({ type: types.SET_THESAURIS, thesauris: 'thesauris' });
});
});
});