Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinaenache committed May 31, 2024
1 parent a63bcad commit 1dd513d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { LinkedInStrategy } from '../oauth/strategy/linkedin/linkedin.strategy';
import { AppleOAuthStrategyFactory } from '../oauth/factory/apple/apple-strategy.factory';
import { AppleStrategy } from '../oauth/strategy/apple/apple.strategy';
import { MailService } from '../mail/mail.service';
import { GithubOAuthStrategyFactory } from 'src/oauth/factory/github/github-strategy.factory';
import { GithubStrategy } from 'src/oauth/strategy/github/github.strategy';
import { GithubOAuthStrategyFactory } from '../oauth/factory/github/github-strategy.factory';
import { GithubStrategy } from '../oauth/strategy/github/github.strategy';

@Module({
imports: [
Expand Down
2 changes: 2 additions & 0 deletions src/auth/controller/auth.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { AppleOAuthStrategyFactory } from '../../oauth/factory/apple/apple-strat
import { ConfigService } from '@nestjs/config';
import { MailService } from '../../mail/mail.service';
import { mockDeep } from 'jest-mock-extended';
import { GithubOAuthStrategyFactory } from '../../oauth/factory/github/github-strategy.factory';

describe('AuthController', () => {
let controller: AuthController;
Expand All @@ -25,6 +26,7 @@ describe('AuthController', () => {
LinkedInOAuthStrategyFactory,
FacebookOAuthStrategyFactory,
AppleOAuthStrategyFactory,
GithubOAuthStrategyFactory,
ConfigService,
MailService,
],
Expand Down
2 changes: 1 addition & 1 deletion src/auth/controller/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@nestjs/swagger';
import { userProperties } from '../../schemas/user.properties';
import { LowercasePipe } from '../../common/pipes/lowercase.pipe';
import { GithubOAuthStrategyFactory } from 'src/oauth/factory/github/github-strategy.factory';
import { GithubOAuthStrategyFactory } from '../../oauth/factory/github/github-strategy.factory';

@Controller('auth')
@ApiTags('Auth Controller')
Expand Down
2 changes: 2 additions & 0 deletions src/auth/service/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { FacebookOAuthStrategyFactory } from '../../oauth/factory/facebook/faceb
import { AppleOAuthStrategyFactory } from '../../oauth/factory/apple/apple-strategy.factory';
import { ConfigService } from '@nestjs/config';
import { MailService } from '../../mail/mail.service';
import { GithubOAuthStrategyFactory } from '../..//oauth/factory/github/github-strategy.factory';

describe('AuthService', () => {
let service: AuthService;
Expand All @@ -23,6 +24,7 @@ describe('AuthService', () => {
LinkedInOAuthStrategyFactory,
FacebookOAuthStrategyFactory,
AppleOAuthStrategyFactory,
GithubOAuthStrategyFactory,
ConfigService,
MailService,
],
Expand Down
2 changes: 1 addition & 1 deletion src/oauth/factory/github/github-strategy.factory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { OAuthStrategyFactory } from '../oauth-strategy.factory';
import { GithubStrategy } from 'src/oauth/strategy/github/github.strategy';
import { GithubStrategy } from '../../strategy/github/github.strategy';

@Injectable()
export class GithubOAuthStrategyFactory implements OAuthStrategyFactory {
Expand Down

0 comments on commit 1dd513d

Please sign in to comment.