Spaces:
Runtime error
Runtime error
Download src/app.controller.spec.ts from ukzada/invoice-ocr-temp: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/ukzada/invoice-ocr-temp/resolve/main/src/app.controller.spec.ts
- Command line
-
hf download hf://spaces/ukzada/invoice-ocr-temp/src/app.controller.spec.ts
-
curl -L -o app.controller.spec.ts https://huggingface.co/spaces/ukzada/invoice-ocr-temp/resolve/main/src/app.controller.spec.ts
639 Bytes
| import { Test, TestingModule } from '@nestjs/testing'; | |
| import { AppController } from './app.controller'; | |
| import { AppService } from './app.service'; | |
| describe('AppController', () => { | |
| let appController: AppController; | |
| beforeEach(async () => { | |
| const app: TestingModule = await Test.createTestingModule({ | |
| controllers: [AppController], | |
| providers: [AppService], | |
| }).compile(); | |
| appController = app.get<AppController>(AppController); | |
| }); | |
| describe('root', () => { | |
| it('should return "Hello World!"', () => { | |
| expect(appController.getHello()).toBe('Hello World!'); | |
| }); | |
| }); | |
| }); | |