* feat: nested casl abilities * fix: remove unused packages * Fixes * Fix createMany broken * Fix lint * Fix lint * Fix lint * Fix lint * Fixes * Fix CommentThread * Fix bugs * Fix lint * Fix bugs * Fixed auto routing * Fixed app path --------- Co-authored-by: Charles Bochet <charles@twenty.com> Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
33 lines
760 B
TypeScript
33 lines
760 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
|
|
import { AbilityFactory } from 'src/ability/ability.factory';
|
|
|
|
import { PersonService } from './person.service';
|
|
import { PersonResolver } from './person.resolver';
|
|
|
|
describe('PersonResolver', () => {
|
|
let resolver: PersonResolver;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
providers: [
|
|
PersonResolver,
|
|
{
|
|
provide: PersonService,
|
|
useValue: {},
|
|
},
|
|
{
|
|
provide: AbilityFactory,
|
|
useValue: {},
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
resolver = module.get<PersonResolver>(PersonResolver);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(resolver).toBeDefined();
|
|
});
|
|
});
|