From 857f4e3a37be001dafb461253e29960de784d7c6 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 18 Sep 2020 20:21:24 +0100 Subject: [PATCH] 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. --- spec/support/fixtures/stripejs-mock.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/support/fixtures/stripejs-mock.js b/spec/support/fixtures/stripejs-mock.js index 8bfbed4ba5..9ce9c4b935 100644 --- a/spec/support/fixtures/stripejs-mock.js +++ b/spec/support/fixtures/stripejs-mock.js @@ -10,6 +10,10 @@ class Element { `; } + + addEventListener(event) { + return true; + } } window.Stripe = () => {