Skip to content

Commit 78aa401

Browse files
committed
Another minor change to Jasmine recipe.
1 parent ddff1c7 commit 78aa401

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chapters/testing/testing_with_jasmine.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ When we refresh we see they all pass.
163163

164164
## <span style="color: green;">Refactoring the Tests</span>
165165

166-
Now that our tests pass, we should look to see if our code or our test(s) can be refactored. In our spec file, each test creates its own calculator instance. This can make our tests quite repetitive especially for larger test suites. Ideally, we should consider moving that initializaton code into a routine that runs before each test. Luckily Jasmine has a beforeEach function just for this purpose.
166+
Now that our tests pass, we should look to see if our code or our test(s) can be refactored.
167+
168+
In our spec file, each test creates its own calculator instance. This can make our tests quite repetitive especially for larger test suites. Ideally, we should consider moving that initializaton code into a routine that runs before each test.
169+
170+
Luckily Jasmine has a beforeEach function just for this purpose.
167171

168172
{% highlight coffeescript %}
169173

0 commit comments

Comments
 (0)