mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Request mock should send truthy for errors
This commit is contained in:
parent
dab31d724d
commit
0ef362a793
@ -12,6 +12,6 @@ module.exports = jest.fn((opts, cb) => {
|
||||
} else if (url && url.endsWith("en_EN.json")) {
|
||||
cb(undefined, {status: 200}, JSON.stringify(en));
|
||||
} else {
|
||||
cb(undefined, {status: 404}, "");
|
||||
cb(true, {status: 404}, "");
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user