Skip to content

Commit 74fe67c

Browse files
docs: changed readHelloWorld in exampele 3 to return a string (#7272)
1 parent f4c3762 commit 74fe67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/mocking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ module.exports = fs.promises
385385
import { readFileSync } from 'node:fs'
386386

387387
export function readHelloWorld(path) {
388-
return readFileSync(path)
388+
return readFileSync(path, 'utf-8')
389389
}
390390
```
391391

0 commit comments

Comments
 (0)