Skip to content

Commit

Permalink
Step 6: Make the second test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Dec 23, 2017
1 parent 33b6e49 commit a3c92bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/verify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import ensureDemonstration from './ensure-demonstration'
import didCallOccur from './did-call-occur'
import notifySatisfiedMatchers from './notify-satisfied-matchers'
import warnIfAlsoStubbed from './warn-if-also-stubbed'
import fail from './fail'

export default function verify (__userInvokesDemonstrationHere__, config) {
const {double, call} = CallLog.instance.pop()
ensureDemonstration(call)
if (didCallOccur(double, call, config)) {
notifySatisfiedMatchers(double, call, config)
warnIfAlsoStubbed(double, call, config)
} else {
fail(double, call, config)
}
// 4. else
// a. fail-verification (double, call, config)
}

0 comments on commit a3c92bc

Please sign in to comment.