Skip to content

Commit

Permalink
test: Correct docs for fake-registry interface
Browse files Browse the repository at this point in the history
Credit: @iarna
  • Loading branch information
iarna committed Dec 20, 2018
1 parent 1342071 commit 2401b75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fake-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ would be to use its singleton.

```
const common = require('../common-tap.js')
const mr = common.mockRegistry
const mr = common.fakeRegistry
```

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

```
const common = require('../common-tap.js')
const FakeRegistry = common.mockRegistry.FakeRegistry
const FakeRegistry = common.fakeRegistry.FakeRegistry
const mr = new FakeRegistry(opts)
```

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

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

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

Expand Down

0 comments on commit 2401b75

Please # to comment.