Download apps/server/test/app.e2e-spec.ts from fukeke/rss: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/server/test/app.e2e-spec.ts
- Command line
-
hf download hf://spaces/fukeke/rss/apps/server/test/app.e2e-spec.ts
-
curl -L -o app.e2e-spec.ts https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/server/test/app.e2e-spec.ts
630 Bytes
| import { Test, TestingModule } from '@nestjs/testing'; | |
| import { INestApplication } from '@nestjs/common'; | |
| import * as request from 'supertest'; | |
| import { AppModule } from './../src/app.module'; | |
| describe('AppController (e2e)', () => { | |
| let app: INestApplication; | |
| beforeEach(async () => { | |
| const moduleFixture: TestingModule = await Test.createTestingModule({ | |
| imports: [AppModule], | |
| }).compile(); | |
| app = moduleFixture.createNestApplication(); | |
| await app.init(); | |
| }); | |
| it('/ (GET)', () => { | |
| return request(app.getHttpServer()) | |
| .get('/') | |
| .expect(200) | |
| .expect('Hello World!'); | |
| }); | |
| }); | |