Compare commits
1 Commits
6f6018501b
...
20970d7a1e
Author | SHA1 | Date | |
---|---|---|---|
|
20970d7a1e |
@ -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 {}
|
||||
|
@ -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();
|
||||
|
||||
|
@ -6,6 +6,6 @@ import { AuthModule } from '@nestjs-lib/auth';
|
||||
@Module({
|
||||
imports: [PubSubModule, AuthModule],
|
||||
providers: [PasswordConverter],
|
||||
exports: [PasswordConverter, AuthModule],
|
||||
exports: [PasswordConverter],
|
||||
})
|
||||
export class CommonsModule {}
|
||||
|
Loading…
Reference in New Issue
Block a user