diff --git a/spec/js/nonprofits/donate/amount-step-spec.js b/spec/js/nonprofits/donate/amount-step-spec.js index 20518ed7d..d971bb30d 100644 --- a/spec/js/nonprofits/donate/amount-step-spec.js +++ b/spec/js/nonprofits/donate/amount-step-spec.js @@ -3,7 +3,6 @@ const snabbdom = require('snabbdom') const flyd = require('flyd') const render = require('ff-core/render') const amount = require("../../../../client/js/nonprofits/donate/amount-step") -const R = require('ramda') const assert = require('assert') window.log = x => y => console.log(x,y) @@ -36,14 +35,14 @@ const init = (donationDefaults, params$) => { return streams } -const allText = R.map(R.prop('textContent')) +const allText = (input => input.map(item => item.textContent)) const defaultDesigOptions = ['Choose a designation (optional)', 'Use my donation where most needed'] suite("donate wiz / amount step") test("shows a designation dropdown if the multiple_designations param is set", ()=> { let streams = init({}, flyd.stream({multiple_designations: ['a','b']})) let options = allText(streams.dom$().querySelectorAll('.donate-designationDropdown option')) - assert.deepEqual(options, R.concat(defaultDesigOptions, ['a', 'b'])) + assert.deepEqual(options, [...defaultDesigOptions, 'a', 'b']) }) test('sets no designation with a dropdown on the default value', () => { diff --git a/spec/js/nonprofits/donate/wizard-spec.js b/spec/js/nonprofits/donate/wizard-spec.js index e97e489a1..81b962e43 100644 --- a/spec/js/nonprofits/donate/wizard-spec.js +++ b/spec/js/nonprofits/donate/wizard-spec.js @@ -3,7 +3,6 @@ const snabbdom = require('snabbdom') const flyd = require('flyd') const render = require('ff-core/render') const wiz = require("../../../../client/js/nonprofits/donate/wizard") -const R = require('ramda') const assert = require('assert') window.log = x => y => console.log(x,y) @@ -41,7 +40,7 @@ suite("donate wizzzzz") test("initializes amount, info, and payment steps", ()=> { let streams = init() let labels = streams.dom$().querySelectorAll('.ff-wizard-index-label') - assert.deepEqual(R.map(R.prop('textContent'), labels), ['Amount', 'Info', 'Payment']) + assert.deepEqual(labels.map(l => l.text), ['Amount', 'Info', 'Payment']) }) test("shows the nonprofit name without a campaign", () => {