You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Request mock should send truthy for errors
This commit is contained in:
@ -12,6 +12,6 @@ module.exports = jest.fn((opts, cb) => {
|
|||||||
} else if (url && url.endsWith("en_EN.json")) {
|
} else if (url && url.endsWith("en_EN.json")) {
|
||||||
cb(undefined, {status: 200}, JSON.stringify(en));
|
cb(undefined, {status: 200}, JSON.stringify(en));
|
||||||
} else {
|
} else {
|
||||||
cb(undefined, {status: 404}, "");
|
cb(true, {status: 404}, "");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user