Spaces:
Runtime error
Runtime error
File size: 682 Bytes
1e3bf12 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { Test, TestingModule } from '@nestjs/testing';
import { OauthapiController } from './oauthapi.controller';
import { OauthapiService } from './oauthapi.service';
describe('OauthapiController', () => {
let oauthapiController: OauthapiController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [OauthapiController],
providers: [OauthapiService],
}).compile();
oauthapiController = app.get<OauthapiController>(OauthapiController);
});
describe('root', () => {
it('should return "Hello World!"', () => {
expect(oauthapiController.getHello()).toBe('Hello World!');
});
});
});
|