Open wvmitchell opened 1 year ago
An example is in spa
tests:
it.skip('should rack up a bill', function(){
var nik = createCustomer('Nik', 0 , [])
var footMassage = createService('foot massage', 65)
var facial = createService('facial', 50)
var nikFootMassage = bookServices(nik, footMassage)
var nikFacial = bookServices(nik, facial)
assert.deepEqual(nikFootMassage.bookings, ['foot massage','facial'])
assert.deepEqual(nikFacial.bill, 115)
})
Where you'd have to push the service into nik
when bookServices
is invoked in order for nikFootMassage
and nikFacial
to be connected.
Notes for me: I'm also going to be keeping an eye on on wether or not to put them in any order. Might also fix some things like mis-named tests, confusing themes (vhs), file names
Here's the PR for these changes :)
https://github.com/turingschool-examples/javascript-foundations/pull/115
Description
In seeing students solve the current (new) JS foundations, some of the tests cannot be passed without creating an impure function. None of the tests should require this.
Summary of Changes
Notes