1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-13 23:41:50 +03:00

Down to 7 test failures

This commit is contained in:
Michael Telatynski
2019-12-17 11:24:37 +00:00
parent 0041dae664
commit ab3fb6581b
14 changed files with 122 additions and 91 deletions

View File

@ -154,10 +154,10 @@ describe('Terms', function() {
const interactionCallback = jest.fn().mockResolvedValue(["http://example.com/one", "http://example.com/two"]);
await startTermsFlow([IM_SERVICE_ONE, IM_SERVICE_TWO], interactionCallback);
// console.log("getTerms call 0", MatrixClientPeg.get().getTerms.getCall(0).args);
// console.log("getTerms call 1", MatrixClientPeg.get().getTerms.getCall(1).args);
// console.log("interactionCallback call", interactionCallback.getCall(0).args);
// console.log("agreeToTerms call", MatrixClientPeg.get().agreeToTerms.getCall(0).args);
console.log("getTerms call 0", MatrixClientPeg.get().getTerms.mock.calls[0]);
console.log("getTerms call 1", MatrixClientPeg.get().getTerms.mock.calls[1]);
console.log("interactionCallback call", interactionCallback.mock.calls[0]);
console.log("agreeToTerms call", MatrixClientPeg.get().agreeToTerms.mock.calls[0]);
expect(interactionCallback).toBeCalledWith([
{