Skip to content

Commit

Permalink
fix: ensure to add cookie strategy to the test app module's providers
Browse files Browse the repository at this point in the history
  • Loading branch information
ainsly committed Jan 19, 2025
1 parent c28676c commit 7360833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/with-register/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '../../lib';
import { AppController } from '../common/app.controller';
import { AppService } from '../common/app.service';
import { CookieStrategy } from '../common/cookie.strategy';
import { JwtStrategy } from '../common/jwt.strategy';
import { LocalUnionDiscriminatorCheckStrategy } from '../common/local-union-discriminator-check.strategy';
import { LocalStrategy } from '../common/local.strategy';
Expand All @@ -19,7 +20,8 @@ import { LocalStrategy } from '../common/local.strategy';
AppService,
LocalStrategy,
LocalUnionDiscriminatorCheckStrategy,
JwtStrategy
JwtStrategy,
CookieStrategy
]
})
export class AppModule {}
4 changes: 3 additions & 1 deletion test/without-register/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '../../lib';
import { AppController } from '../common/app.controller';
import { AppService } from '../common/app.service';
import { CookieStrategy } from '../common/cookie.strategy';
import { JwtStrategy } from '../common/jwt.strategy';
import { LocalUnionDiscriminatorCheckStrategy } from '../common/local-union-discriminator-check.strategy';
import { LocalStrategy } from '../common/local.strategy';
Expand All @@ -19,7 +20,8 @@ import { LocalStrategy } from '../common/local.strategy';
AppService,
LocalStrategy,
LocalUnionDiscriminatorCheckStrategy,
JwtStrategy
JwtStrategy,
CookieStrategy
]
})
export class AppModule {}

0 comments on commit 7360833

Please sign in to comment.