Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion content/docs/concepts/dependency_injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,11 @@ Once a swap has been defined, the container will use it instead of the actual cl
```ts
app.container.restore(UserService)

// Restore UserService and PostService
app.container.restoreAll([UserService, PostService])

// Restore all
app.container.restore()
app.container.restoreAll()
```

## Contextual dependencies
Expand Down
5 changes: 4 additions & 1 deletion content/docs/testing/mocks_and_fakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ Once the test has been completed, you must restore the fake using the `container
```ts
app.container.restore(UserService)

// Restore UserService and PostService
app.container.restoreAll([UserService, PostService])

// Restore all
app.container.restore()
app.container.restoreAll()
```

## Mocks and stubs using Sinon.js
Expand Down