blob: 8855f04353d21fb0a969938d88bfb38e6ed1cb21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { expect } from "chai";
import actions from 'content/actions';
import * as settingActions from 'content/actions/setting';
describe("setting actions", () => {
describe("set", () => {
it('create SETTING_SET action', () => {
let action = settingActions.set({ red: 'apple', yellow: 'banana' });
expect(action.type).to.equal(actions.SETTING_SET);
expect(action.value).to.deep.equal({ red: 'apple', yellow: 'banana' });
});
});
});
|