Skip to content

Commit

Permalink
Final Code For NSJS364
Browse files Browse the repository at this point in the history
  • Loading branch information
manikbajaj committed Jun 19, 2024
1 parent 10fe56b commit b535e74
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('AppController', () => {
});

describe('root', () => {
it('Controller should be defined', () => {
it('Should be defined', () => {
expect(appController).toBeDefined();
});
});
Expand Down
21 changes: 21 additions & 0 deletions src/users/providers/users.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Test, TestingModule } from '@nestjs/testing';

import { UsersService } from './users.service';

describe('UsersService', () => {
let service: UsersService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [UsersService],
}).compile();

service = module.get<UsersService>(UsersService);
});

describe('UsersService', () => {
it('Should be defined', () => {
expect(service).toBeDefined();
});
});
});
3 changes: 0 additions & 3 deletions src/users/providers/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ export class UsersService {
@InjectRepository(User)
private usersRepository: Repository<User>,

@Inject(profileConfig.KEY)
private readonly profileConfiguration: ConfigType<typeof profileConfig>,

/**
* Inject UsersCreateMany provider
*/
Expand Down

0 comments on commit b535e74

Please sign in to comment.