File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1- jest . dontMock ( '../react-most' ) ;
2- jest . dontMock ( '../test-utils' ) ;
3- jest . dontMock ( '../history' ) ;
4- jest . dontMock ( '../engine/most' ) ;
5- jest . dontMock ( 'most' )
61import React from 'react' ;
72import ReactDOM from 'react-dom' ;
83import TestUtils from 'react-addons-test-utils' ;
@@ -78,7 +73,6 @@ describe('mostux', () => {
7873 { id :2 , text :'heheda' , done :false } ,
7974 ] } />
8075 )
81- jest . runAllTimers ( ) ;
8276 let todos = TestUtils . scryRenderedComponentsWithType ( todolist , Todo )
8377 expect ( todos . length ) . toBe ( 2 ) ;
8478 expect ( todos [ 0 ] . props . todo . done ) . toBe ( false ) ;
@@ -101,10 +95,10 @@ describe('mostux', () => {
10195 return historyStreamOf ( div )
10296 . take$ ( 4 )
10397 . then ( state =>
104- expect ( state ) . toEqual (
105- { todos : [
98+ expect ( state . todos ) . toEqual (
99+ [
106100 { id : 1 , text : 5 , done : false }
107- ] } ) )
101+ ] ) )
108102 } ) ;
109103 } ) ;
110104} )
You can’t perform that action at this time.
0 commit comments