Skip to content

Commit 417437d

Browse files
committed
fix test if props is merge with default and given
1 parent f138bd7 commit 417437d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/__tests__/react-most-test.jsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
jest.dontMock('../react-most');
2-
jest.dontMock('../test-utils');
3-
jest.dontMock('../history');
4-
jest.dontMock('../engine/most');
5-
jest.dontMock('most')
61
import React from 'react';
72
import ReactDOM from 'react-dom';
83
import 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
})

0 commit comments

Comments
 (0)