mirror of
https://github.com/tedkulp/vidgrab
synced 2026-04-22 22:04:34 -04:00
initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { Test } from '@nestjs/testing';
|
||||
|
||||
import { AppService } from './app.service';
|
||||
|
||||
describe('AppService', () => {
|
||||
let service: AppService;
|
||||
|
||||
beforeAll(async () => {
|
||||
const app = await Test.createTestingModule({
|
||||
providers: [AppService],
|
||||
}).compile();
|
||||
|
||||
service = app.get<AppService>(AppService);
|
||||
});
|
||||
|
||||
describe('getData', () => {
|
||||
it('should return "Welcome to api!"', () => {
|
||||
expect(service.getData()).toEqual({ message: 'Welcome to api!' });
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user