Down to 7 test failures
This commit is contained in:
parent
0041dae664
commit
ab3fb6581b
14 changed files with 122 additions and 91 deletions
|
@ -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([
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue