aboutsummaryrefslogtreecommitdiff
path: root/test/content/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-23 10:43:33 +0000
committerGitHub <noreply@github.com>2017-10-23 10:43:33 +0000
commitccc81312a1d4d9a5cea7d7451c26ec25b2172aa8 (patch)
tree96ae119fb5e7939547284f72fc12cd9cc6c717d5 /test/content/actions
parent7639e99b755e372712dca36e077a85d9a025cd9f (diff)
parentb9f2668ceab3d786ce3e587803ff30ec5c781ee3 (diff)
Merge pull request #90 from ueokande/11-url-blacklist
URL blacklist
Diffstat (limited to 'test/content/actions')
-rw-r--r--test/content/actions/setting.test.js13
1 files changed, 13 insertions, 0 deletions
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' });
+ });
+ });
+});