Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
docs: readme improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 25, 2018
1 parent c37362d commit 308aa59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,11 @@ Using [run](#run) you can really maximize this ability. In fact, you don't even
describe('my suite', () => {
let setupDB = fancy()
.run(() => setupDB())
.catch(/spurious db error/)
.run(() => setupDeps())

let testMyApp = testInfo => {
return setupDB.run()
.run({addToContext: true}, () => { return {a: 1}})
.run({addToContext: true}, () => { return {b: 2}})
// context will be {a: 1, b: 2}
.run(context => myApp(testInfo, context))
}

Expand Down

0 comments on commit 308aa59

Please sign in to comment.