Skip to content

Commit

Permalink
Update documentation examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Feb 3, 2017
1 parent 7c12d19 commit 126a364
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/assertions/spy/was-called-on.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ expected mySpy was called on {}
mySpy(); at theFunction (theFileName:xx:yy)
// expected: was called on {}
// expected mySpy to be called with {} as this but was called with { spy: mySpy }
// expected mySpy to be called with {} as this but was called with { mySpy }
```

You can make this assertion more strict by using the `always`
Expand All @@ -37,10 +37,10 @@ expect(obj.spy, 'was always called on', obj);
```

```output
expected mySpy was always called on { spy: mySpy }
expected mySpy was always called on { mySpy }
mySpy(); at theFunction (theFileName:xx:yy)
mySpy(); at theFunction (theFileName:xx:yy)
// expected: was called on { spy: mySpy }
// expected mySpy to be called with { spy: mySpy } as this but was called with {}
// expected: was called on { mySpy }
// expected mySpy to be called with { mySpy } as this but was called with {}
```

0 comments on commit 126a364

Please sign in to comment.