You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Fix the tests
This commit is contained in:
@@ -97,7 +97,7 @@ describe("InteractiveAuth", function() {
|
|||||||
// first we expect a call to doRequest
|
// first we expect a call to doRequest
|
||||||
doRequest.mockImplementation(function(authData) {
|
doRequest.mockImplementation(function(authData) {
|
||||||
logger.log("request1", authData);
|
logger.log("request1", authData);
|
||||||
expect(authData).toEqual({});
|
expect(authData).toEqual(null); // first request should be null
|
||||||
const err = new MatrixError({
|
const err = new MatrixError({
|
||||||
session: "sessionId",
|
session: "sessionId",
|
||||||
flows: [
|
flows: [
|
||||||
@@ -156,7 +156,7 @@ describe("InteractiveAuth", function() {
|
|||||||
|
|
||||||
doRequest.mockImplementation(function(authData) {
|
doRequest.mockImplementation(function(authData) {
|
||||||
logger.log("request1", authData);
|
logger.log("request1", authData);
|
||||||
expect(authData).toEqual({});
|
expect(authData).toEqual(null); // first request should be null
|
||||||
const err = new MatrixError({
|
const err = new MatrixError({
|
||||||
session: "sessionId",
|
session: "sessionId",
|
||||||
flows: [],
|
flows: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user