Skip to content

Commit 10cd982

Browse files
committed
Corrected spelling mistakes.
1 parent 606b4f9 commit 10cd982

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapters/testing/testing_with_jasmine.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ To run our tests, simply open SpecRunner.html in a web browser. In our example
122122

123123
<img src="images/jasmine_failing_all.jpg" alt="All failing tests" />
124124

125-
It appears our tests are failing because Jasmine can not find the variable Calculator. That's because it has not been created yet. Let's do that now by creating a new file named js/calculator.coffee.
125+
It appears our tests are failing because Jasmine cannot find the variable Calculator. That's because it has not been created yet. Let's do that now by creating a new file named js/calculator.coffee.
126126

127127

128128
{% highlight coffeescript %}
@@ -137,7 +137,7 @@ Compile calculator.coffee and refresh the browser to re-run the test suite.
137137

138138
<img src="images/jasmine_failing_better.jpg" alt="Still failing, but better" />
139139

140-
We now have 4 failures instead of our previous 8. That's a 50% improvment with only one line of code.
140+
We now have 4 failures instead of our previous 8. That's a 50% improvement with only one line of code.
141141

142142
## <span style="color: green;">Getting the Tests to Pass</span>
143143

@@ -165,7 +165,7 @@ When we refresh we see they all pass.
165165

166166
Now that our tests pass, we should look to see if our code or our test(s) can be refactored.
167167

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.
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 initialization code into a routine that runs before each test.
169169

170170
Luckily Jasmine has a beforeEach function just for this purpose.
171171

0 commit comments

Comments
 (0)