From 75feb38bd1e831b8392e67a09fe5a3e1865a4480 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 18 Dec 2019 22:37:19 +0800 Subject: [PATCH] Update article.md --- 1-js/03-code-quality/05-testing-mocha/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/03-code-quality/05-testing-mocha/article.md b/1-js/03-code-quality/05-testing-mocha/article.md index e387b404..68ffcae4 100644 --- a/1-js/03-code-quality/05-testing-mocha/article.md +++ b/1-js/03-code-quality/05-testing-mocha/article.md @@ -159,7 +159,7 @@ We can select one of two ways to organize the test here: assert.equal(pow(2, 3), 8); }); - it("3 raised to power 3 is 27", function() { + it("3 raised to power 4 is 81", function() { assert.equal(pow(3, 4), 81); }); @@ -182,7 +182,7 @@ The result: [iframe height=250 src="pow-2" edit border="1"] -As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `27`. +As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `81`. ## Improving the implementation