Comment
This commit is contained in:
parent
1fbf027a40
commit
b0bf24c136
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ describe('RoomView', function () {
|
||||||
ReactDOM.render(<RoomView roomAddress="#alias:ser.ver" onRoomIdResolved={onRoomIdResolved} />, parentDiv);
|
ReactDOM.render(<RoomView roomAddress="#alias:ser.ver" onRoomIdResolved={onRoomIdResolved} />, parentDiv);
|
||||||
|
|
||||||
process.nextTick(function() {
|
process.nextTick(function() {
|
||||||
|
// These expect()s don't read very well and don't give very good failure
|
||||||
|
// messages, but expect's toHaveBeenCalled only takes an expect spy object,
|
||||||
|
// not a sinon spy object.
|
||||||
expect(onRoomIdResolved.called).toExist();
|
expect(onRoomIdResolved.called).toExist();
|
||||||
ReactDOM.unmountComponentAtNode(parentDiv);
|
ReactDOM.unmountComponentAtNode(parentDiv);
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue