mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -10,6 +10,10 @@ class Element {
|
||||
<input name="cvc" placeholder="CVC" size="3" type="text">
|
||||
`;
|
||||
}
|
||||
|
||||
addEventListener(event) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
window.Stripe = () => {
|
||||
|
||||
Reference in New Issue
Block a user