Add missing method to StripeJS mock

Our Angular code calls this method for interacting with live form validations and messages. We don't really need to use in tests, it just needs to exist otherwise the specs fail.
This commit is contained in:
Matt-Yorkley
2020-09-18 20:21:24 +01:00
parent 67d136548f
commit 857f4e3a37

View File

@@ -10,6 +10,10 @@ class Element {
<input name="cvc" placeholder="CVC" size="3" type="text">
`;
}
addEventListener(event) {
return true;
}
}
window.Stripe = () => {