Skip to content

Commit 75feb38

Browse files
authored
Update article.md
1 parent d1100fc commit 75feb38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎1-js/03-code-quality/05-testing-mocha/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ We can select one of two ways to organize the test here:
159159
assert.equal(pow(2, 3), 8);
160160
});
161161
162-
it("3 raised to power 3 is 27", function() {
162+
it("3 raised to power 4 is 81", function() {
163163
assert.equal(pow(3, 4), 81);
164164
});
165165
@@ -182,7 +182,7 @@ The result:
182182

183183
[iframe height=250 src="pow-2" edit border="1"]
184184

185-
As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `27`.
185+
As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `81`.
186186

187187
## Improving the implementation
188188

0 commit comments

Comments
 (0)