Skip to content

Commit 141cec1

Browse files
davids-sparksharekamilmysliwiecjmcdo29
authored
Apply suggestions from code review
Co-authored-by: Kamil Mysliwiec <[email protected]> Co-authored-by: Jay McDoniel <[email protected]>
1 parent eecb1f9 commit 141cec1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/fundamentals/unit-testing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ The compiled module has several useful methods, as described in the following ta
312312
313313
> info **Hint** Keep your e2e test files inside the `e2e` directory. The testing files should have a `.e2e-spec` or `.e2e-test` suffix.
314314
315-
#### Overriding globally registered providers
315+
#### Overriding globally registered enhancers
316316
317317
If you have a [globally registered guard](/security/authentication#enable-authentication-globally) (or pipe, interceptor, or filter), you need to take a few more steps to override that enhancer. To recap the original registration looks like this:
318318
@@ -325,7 +325,7 @@ providers: [
325325
],
326326
```
327327
328-
This is registering the guard as a "multi"-provider through the `APP_*` token. To be able to replace the JwtAuthGuard here, the registration needs to use an existing provider in this slot:
328+
This is registering the guard as a "multi"-provider through the `APP_*` token. To be able to replace the `JwtAuthGuard` here, the registration needs to use an existing provider in this slot:
329329

330330
```typescript
331331
providers: [
@@ -339,7 +339,7 @@ providers: [
339339

340340
> info **Hint** Change the `useClass` to `useExisting` to reference a registered provider instead of having Nest instantiate it behind the token.
341341
342-
Now the `JwtAuthGuard` is visible to nestjs as a regular provider that can be overridden when creating the `TestingModule`:
342+
Now the `JwtAuthGuard` is visible to nest as a regular provider that can be overridden when creating the `TestingModule`:
343343

344344
```typescript
345345
const moduleRef = await Test.createTestingModule({

0 commit comments

Comments
 (0)