30 lines
953 B
TypeScript
30 lines
953 B
TypeScript
import { Test, TestingModule } from "@nestjs/testing";
|
|
import { INestApplication } from "@nestjs/common";
|
|
import * as request from "supertest";
|
|
import { AppModule } from "@/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("/skills", () => {
|
|
return request(app.getHttpServer()).get("/skills").expect(200);
|
|
});
|
|
it("/experiences", () => {
|
|
return request(app.getHttpServer()).get("/experiences").expect(200);
|
|
});
|
|
it("/education", () => {
|
|
return request(app.getHttpServer()).get("/education").expect(200);
|
|
});
|
|
it("/intro", () => {
|
|
return request(app.getHttpServer()).get("/intro").expect(200);
|
|
});
|
|
});
|