Choices/src/scripts/actions/general.test.js
2018-11-04 13:28:25 +00:00

16 lines
388 B
JavaScript

import { expect } from 'chai';
import * as actions from './general';
describe('actions/general', () => {
describe('setIsLoading action', () => {
it('returns LOADING action with passed loading flag', () => {
const expectedAction = {
type: 'LOADING',
isLoading: true,
};
expect(actions.setIsLoading(true)).to.eql(expectedAction);
});
});
});