Movd another PKPass.from message to messages

This commit is contained in:
Alexander Cerutti
2021-10-17 18:55:44 +02:00
parent 852ea53c77
commit f17daa0a45
3 changed files with 7 additions and 3 deletions

View File

@@ -960,12 +960,12 @@ describe("PKPass", () => {
PKPass.from(),
).toBeRejectedWithError(
TypeError,
"Cannot create PKPass from source: source is 'undefined'",
Messages.FROM.MISSING_SOURCE.replace("%s", "undefined"),
);
await expectAsync(PKPass.from(null)).toBeRejectedWithError(
TypeError,
"Cannot create PKPass from source: source is 'null'",
Messages.FROM.MISSING_SOURCE.replace("%s", "null"),
);
});