From 815b9d8aa3981c28303e6e277f3b3a4d3aac90ee Mon Sep 17 00:00:00 2001 From: Travis Rollins Date: Sun, 28 Jan 2024 22:38:12 -0800 Subject: [PATCH] Update wordage and examples to follow functional testing paradigms and remove method terminology --- lessons/module-2/testing-tdd-mocha-and-chai.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lessons/module-2/testing-tdd-mocha-and-chai.md b/lessons/module-2/testing-tdd-mocha-and-chai.md index 2efc2c2f..ff25f743 100644 --- a/lessons/module-2/testing-tdd-mocha-and-chai.md +++ b/lessons/module-2/testing-tdd-mocha-and-chai.md @@ -448,10 +448,8 @@ Let's continue to practice adding more iterations following the TDD process from
### Iteration 2 -- You should be able to increase the width by a provided value. -ie: `increaseWidth(10)` -- You should be able to increase the height of your box by a provided value -ie: `increaseHeight(10)` +- You should be able to increase the width of a box by a provided value. ie: `increaseWidth(box, 10)` +- You should be able to increase the height of a box by a provided value. ie: `increaseHeight(box, 10)`
## Testing Practice: Iteration 3 @@ -461,8 +459,7 @@ Implement iteration 3 for our box per the spec outlined below;
### Iteration 3 -- Refactor your code so that instead of having increaseWidth and increaseHeight methods, you can have a single method to do both jobs -ie: `increment(10, 'height')` or `increment(10, 'width')` +- Refactor your code so that instead of having `increaseWidth` and `increaseHeight` functions, you can have a single function to do both jobs ie: `increment(box, 10, 'height')` or `increment(box, 10, 'width')`