pull/21833/head
David Baker 2016-06-17 12:22:16 +01:00
parent 1fbf027a40
commit b0bf24c136
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ describe('RoomView', function () {
ReactDOM.render(<RoomView roomAddress="#alias:ser.ver" onRoomIdResolved={onRoomIdResolved} />, parentDiv);
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();
ReactDOM.unmountComponentAtNode(parentDiv);
done();