tesugen
Version:
Setup extendable API-testing framework
12 lines (10 loc) • 364 B
text/typescript
import { TestSuite, Test, expect } from "testyts/build/testyCore";
import { TestClient } from "../../src/client";
()
export class ApiTestSuite extends TestClient {
("Should GET specific endpoint")
async checkIfStatusCodeIs200() {
const response = await this.getRequestToSpecificEndpoint();
expect.toBeEqual(response.status, 200);
}
}