Skip to content

Commit 2401b75

Browse files
committed
test: Correct docs for fake-registry interface
Credit: @iarna
1 parent 1342071 commit 2401b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/fake-registry.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ would be to use its singleton.
3535

3636
```
3737
const common = require('../common-tap.js')
38-
const mr = common.mockRegistry
38+
const mr = common.fakeRegistry
3939
```
4040

4141
If you have need of multiple registries at the same time, you can construct
4242
them by hand:
4343

4444
```
4545
const common = require('../common-tap.js')
46-
const FakeRegistry = common.mockRegistry.FakeRegistry
46+
const FakeRegistry = common.fakeRegistry.FakeRegistry
4747
const mr = new FakeRegistry(opts)
4848
```
4949

@@ -150,7 +150,7 @@ If no route can be found then a `404` response will be provided.
150150
## Construction
151151

152152
const common = require('../common-tap.js')
153-
const mr = common.mockRegistry.compat
153+
const mr = common.fakeRegistry.compat
154154

155155
### mr(options[, callback]) → Promise(server)
156156

0 commit comments

Comments
 (0)