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

19 lines
503 B
TypeScript
Raw Normal View History

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();
});
});