Skip to content

Commit 25f7039

Browse files
author
dphaener
committed
Remove unneeded function
1 parent cfea018 commit 25f7039

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/alt/store.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ class TestStore {
66
this.actions = actions
77
}
88

9-
action(funcName, data) {
10-
this.actions[funcName].call(this, data)
11-
return this
12-
}
13-
149
test(callback) {
1510
callback.call(this, this.store)
1611
return this

tests/store.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ describe('TestStore', () => {
3030
}
3131
]
3232

33-
describe('#action', () => {
34-
it('should call a method on the actions', () => {
35-
TestStore(MyStore, MyActions)
36-
.setInitialState({ todos: todos })
37-
.action('addTodo', { title: "Get Beer", complete: false })
38-
.test(({ state }) => {
39-
expect(state.todos).to.eql(expected)
40-
})
41-
})
42-
})
43-
4433
describe('proxy', () => {
4534
it('should proxy missing method calls to the call function', () => {
4635
TestStore(MyStore, MyActions)

0 commit comments

Comments
 (0)