From 4080e7daa4b5a9e7e37273036ac9e489bea226b9 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 18 Sep 2020 20:26:17 +0100 Subject: [PATCH] Add comments in StripeJS mock --- 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 cb963b9975..42c68f9066 100644 --- a/spec/support/fixtures/stripejs-mock.js +++ b/spec/support/fixtures/stripejs-mock.js @@ -1,3 +1,7 @@ +// StripeJS fixture for using Stripe in feature specs. Mimics credit card form and Element objects. +// Based on: https://github.com/thoughtbot/fake_stripe/blob/v0.3.0/lib/fake_stripe/assets/v3.js +// The original has been adapted to work with OFN (see commit history for details). + class Element { mount(el) { if (typeof el === "string") {