From c6eb5553d0477f96b5edd48012b4c4ab342f026c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 22 Oct 2017 17:45:16 +0900 Subject: add setting actions in content --- test/content/actions/setting.test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/content/actions/setting.test.js (limited to 'test/content/actions') diff --git a/test/content/actions/setting.test.js b/test/content/actions/setting.test.js new file mode 100644 index 0000000..8855f04 --- /dev/null +++ b/test/content/actions/setting.test.js @@ -0,0 +1,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' }); + }); + }); +}); -- cgit v1.2.3