aboutsummaryrefslogtreecommitdiff
path: root/test/content/reducers/mark.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-11 16:38:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-11 16:38:08 +0900
commitc6288f19d93a05f96274dd172450b8350389c39f (patch)
tree75b5a168af535aa640bc21e70281497915dade63 /test/content/reducers/mark.test.ts
parentebfb172520f7077a15cd5d4e865e5d86593c55ac (diff)
Mark set/jump as a clean architecture
Diffstat (limited to 'test/content/reducers/mark.test.ts')
-rw-r--r--test/content/reducers/mark.test.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/content/reducers/mark.test.ts b/test/content/reducers/mark.test.ts
index 1a51c3e..918a560 100644
--- a/test/content/reducers/mark.test.ts
+++ b/test/content/reducers/mark.test.ts
@@ -6,7 +6,6 @@ describe("mark reducer", () => {
let state = reducer(undefined, {});
expect(state.setMode).to.be.false;
expect(state.jumpMode).to.be.false;
- expect(state.marks).to.be.empty;
});
it('starts set mode', () => {
@@ -29,13 +28,4 @@ describe("mark reducer", () => {
state = reducer({ jumpMode: true }, action);
expect(state.jumpMode).to.be.false;
});
-
- it('stores local mark', () => {
- let action = { type: actions.MARK_SET_LOCAL, key: 'a', x: 20, y: 30};
- let state = reducer({ setMode: true }, action);
- expect(state.setMode).to.be.false;
- expect(state.marks['a']).to.be.an('object')
- expect(state.marks['a'].x).to.equal(20)
- expect(state.marks['a'].y).to.equal(30)
- });
});