Download apps/server/src/app.controller.spec.ts from fukeke/rss: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/server/src/app.controller.spec.ts
- Command line
-
hf download hf://spaces/fukeke/rss/apps/server/src/app.controller.spec.ts
-
curl -L -o app.controller.spec.ts https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/server/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!'); | |
| }); | |
| }); | |
| }); | |