blob: 4660a2dec7fe8eed09d462e07193f7184a609356 [file] [log] [blame]
This is a testharness.js-based test.
FAIL Must throw if it encounters an unknown currencySystem assert_throws: function "() => {
const invalidAmount = {
...validAmount,
currencySystem: "this will cause the TypeError"
}
const invalidDetails = {
total: {
label: "",
amount: invalidAmount,
},
};
const request = new PaymentRequest(validMethods, invalidDetails);
}" did not throw
Harness: the test ran to completion.