File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ describe('MathProblem', function(){
177177 var subject, createRandomProblem, savesProblem;
178178 beforeEach (function (){
179179 createRandomProblem = td .function (' createRandomProblem' )
180- savesProblem = td .object (SavesProblem)
180+ savesProblem = td .object (new SavesProblem () )
181181 subject = new MathProblem (createRandomProblem, savesProblem)
182182 })
183183 it (' POSTs a random problem' , function (){
@@ -188,7 +188,7 @@ describe('MathProblem', function(){
188188
189189As you can see above, we used a different method to create this test double!
190190Because our second dependency is an instantiable type, we used
191- ` td.object([constructor function ]) ` to create a test double for it. This test
191+ ` td.object([instance object ]) ` to create a test double for it. This test
192192double function is smart enough to hunt for any methods defined on the function's
193193prototype, and therefore will return an object that has a test double function
194194defined as the property ` save ` .
You can’t perform that action at this time.
0 commit comments