1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

add delay

This commit is contained in:
Michael Telatynski
2019-12-17 13:11:30 +00:00
parent a2246374f1
commit b9e22f8141

View File

@ -103,7 +103,7 @@ describe('InteractiveAuthDialog', function() {
})); }));
// let the request complete // let the request complete
return sleep(1); return sleep(1);
}).then(() => { }).then(sleep(1)).then(() => {
expect(onFinished).toBeCalledTimes(1); expect(onFinished).toBeCalledTimes(1);
expect(onFinished).toBeCalledWith(true, {a: 1}); expect(onFinished).toBeCalledWith(true, {a: 1});
}); });