Skip to content

Commit e16179d

Browse files
Updated Getting Started to match td.object()'s changes
Since 'td.object' does not support a constructor function as parameter anymore, the docs became outdated.
1 parent 7e35cdd commit e16179d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/3-getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

189189
As you can see above, we used a different method to create this test double!
190190
Because 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
192192
double function is smart enough to hunt for any methods defined on the function's
193193
prototype, and therefore will return an object that has a test double function
194194
defined as the property `save`.

0 commit comments

Comments
 (0)