File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments