import { Test , TestingModule } from '@nestjs/testing' ; import { RefreshTokenService } from './refresh-token.service' ; import { getRepositoryToken } from '@nestjs/typeorm' ; import { RefreshTokenEntity } from '@btcp/bootcamp-data' ; const mockRepository = { } ; describe ( 'RefreshTokenService' , ( ) => { let service ; beforeEach ( async ( ) => { const module = await Test . createTestingModule ( { providers : [ RefreshTokenService , { provide : getRepositoryToken ( RefreshTokenEntity ) , useValue : mockRepository , } ] , } ) . compile ( ) ; service = module . get < RefreshTokenService > ( RefreshTokenService ) ; } ) ; it ( 'should be defined' , ( ) => { expect ( service ) . toBeDefined ( ) ; } ) ; } ) ;