tiny-url-nestjs-microservice/src/url-shortener/url-shortener.service.spec.ts

18 lines
503 B
TypeScript

import { Test, TestingModule } from '@nestjs/testing';
import { UrlShortenerService } from './url-shortener.service';
describe('UrlShortenerService', () => {
let service: UrlShortenerService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [UrlShortenerService],
}).compile();
service = module.get<UrlShortenerService>(UrlShortenerService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});