diff options
author | 2023-08-25 12:47:47 -0700 | |
---|---|---|
committer | 2023-08-25 12:47:47 -0700 | |
commit | d62b0c365291306ce105c507224f3f1d0206c4c6 (patch) | |
tree | 65348811b51a2e96530711c846db0ac5019dcd1c /docs/guides/test/spy-on.md | |
parent | 21b2d5c3a58a974298b06587a1b1c8f442f7b055 (diff) | |
download | bun-d62b0c365291306ce105c507224f3f1d0206c4c6.tar.gz bun-d62b0c365291306ce105c507224f3f1d0206c4c6.tar.zst bun-d62b0c365291306ce105c507224f3f1d0206c4c6.zip |
Readability tweaks
Diffstat (limited to 'docs/guides/test/spy-on.md')
-rw-r--r-- | docs/guides/test/spy-on.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guides/test/spy-on.md b/docs/guides/test/spy-on.md index 3a43b2367..003c05d96 100644 --- a/docs/guides/test/spy-on.md +++ b/docs/guides/test/spy-on.md @@ -8,7 +8,7 @@ Use the `spyOn` utility to track method calls with Bun's test runner. import { test, expect, spyOn } from "bun:test"; const leo = { - name: "Leonard", + name: "Leonardo", sayHi(thing: string) { console.log(`Sup I'm ${this.name} and I like ${thing}`); }, @@ -27,7 +27,7 @@ Once the spy is created, it can be used to write `expect` assertions relating to const leo = { name: "Leonardo", sayHi(thing: string) { - console.log(`Sup, I'm ${this.name} and I like ${thing}`); + console.log(`Sup I'm ${this.name} and I like ${thing}`); }, }; |