Joined January 2012
·

Jonathan Bowers

Kamloops
·
·
·

Posted to series steps in mocha beforeEach over 1 year ago

In this example, there is no point (other than for illustration I suppose). The next step in refactoring would be to just pass the "steps" into beforeEach:

beforeEach(loadSomeData);
beforeEach(setSomeOtherTestVariables);
Achievements
374 Karma
67,550 Total ProTip Views