Skip to content

Commit 7c5c19e

Browse files
simonebdanielleadams
authored andcommittedOct 5, 2022
doc: update node prefix require.cache example
PR-URL: #44724 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f300f19 commit 7c5c19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/api/modules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ const realFs = require('node:fs');
720720
const fakeFs = {};
721721
require.cache.fs = { exports: fakeFs };
722722

723-
assert.strictEqual(require('node:fs'), fakeFs);
723+
assert.strictEqual(require('fs'), fakeFs);
724724
assert.strictEqual(require('node:fs'), realFs);
725725
```
726726

0 commit comments

Comments
 (0)
Please sign in to comment.