mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-26 17:31:02 +02:00
25 lines
543 B
JavaScript
25 lines
543 B
JavaScript
import { expect } from 'chai';
|
|
import * as actions from './groups';
|
|
|
|
describe('actions/groups', () => {
|
|
describe('addGroup action', () => {
|
|
it('returns ADD_GROUP action', () => {
|
|
const value = 'test';
|
|
const id = 'test';
|
|
const active = true;
|
|
const disabled = false;
|
|
const expectedAction = {
|
|
type: 'ADD_GROUP',
|
|
value,
|
|
id,
|
|
active,
|
|
disabled,
|
|
};
|
|
|
|
expect(actions.addGroup(value, id, active, disabled)).to.eql(
|
|
expectedAction,
|
|
);
|
|
});
|
|
});
|
|
});
|