Spaces:
Running
Running
Bibhu Mishra
Claude Sonnet 4.6
Add GitHub Actions CI/CD, HF Space deployment, market hours guard, and static serving
abc493d Download api/src/app.controller.spec.ts from mishrabp/stockadvisor: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/mishrabp/stockadvisor/resolve/main/api/src/app.controller.spec.ts
- Command line
-
hf download hf://spaces/mishrabp/stockadvisor/api/src/app.controller.spec.ts
-
curl -L -o app.controller.spec.ts https://huggingface.co/spaces/mishrabp/stockadvisor/resolve/main/api/src/app.controller.spec.ts
617 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!'); | |
| }); | |
| }); | |
| }); | |