Request mock should send truthy for errors

pull/21833/head
J. Ryan Stinnett 2020-01-16 14:06:54 +00:00
parent dab31d724d
commit 0ef362a793
1 changed files with 1 additions and 1 deletions

View File

@ -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}, "");
} }
}); });