mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-23 16:02:21 +02:00
16 lines
388 B
JavaScript
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);
|
||
|
});
|
||
|
});
|
||
|
});
|