Spaces:
Runtime error
Runtime error
File size: 682 Bytes
97dab2a |
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 { AzureapiController } from './azureapi.controller';
import { AzureapiService } from './azureapi.service';
describe('AzureapiController', () => {
let azureapiController: AzureapiController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [AzureapiController],
providers: [AzureapiService],
}).compile();
azureapiController = app.get<AzureapiController>(AzureapiController);
});
describe('root', () => {
it('should return "Hello World!"', () => {
expect(azureapiController.getHello()).toBe('Hello World!');
});
});
});
|