Compare commits

..

1 Commits

Author SHA1 Message Date
Ivan
20970d7a1e chore: 更新 auth 依赖。 2021-07-22 10:38:55 +08:00
3 changed files with 2 additions and 8 deletions

View File

@ -1,4 +1,3 @@
import { CommonsModule } from './../commons/commons.module';
import { Module } from '@nestjs/common';
import { ArticlesService } from './articles.service';
import { ArticlesResolver } from './articles.resolver';
@ -6,7 +5,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from './entities/article.entity';
@Module({
imports: [TypeOrmModule.forFeature([Article]), CommonsModule],
imports: [TypeOrmModule.forFeature([Article])],
providers: [ArticlesResolver, ArticlesService],
})
export class ArticlesModule {}

View File

@ -1,4 +1,3 @@
import { JwtService } from '@nestjs-lib/auth';
import { Test, TestingModule } from '@nestjs/testing';
import { ArticlesResolver } from './articles.resolver';
import { ArticlesService } from './articles.service';
@ -14,10 +13,6 @@ describe('ArticlesResolver', () => {
provide: ArticlesService,
useValue: {},
},
{
provide: JwtService,
useValue: {},
},
],
}).compile();

View File

@ -6,6 +6,6 @@ import { AuthModule } from '@nestjs-lib/auth';
@Module({
imports: [PubSubModule, AuthModule],
providers: [PasswordConverter],
exports: [PasswordConverter, AuthModule],
exports: [PasswordConverter],
})
export class CommonsModule {}