Skip to content

Commit fb0ebd9

Browse files
lint fixes
1 parent 7c57d35 commit fb0ebd9

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

tests/component-tests/apiGateway-tests/get-letters.spec.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
createInvalidRequestHeaders,
66
createValidRequestHeaders,
77
} from "../../constants/request-headers";
8-
import { getRestApiGatewayBaseUrl } from "../../helpers/aws-gateway-helper";
9-
import { validateApiResponse } from "../../helpers/validateJsonSchema";
8+
import getRestApiGatewayBaseUrl from "../../helpers/aws-gateway-helper";
9+
import validateApiResponse from "../../helpers/validate-json-schema";
1010

1111
let baseUrl: string;
1212

@@ -27,17 +27,6 @@ test.describe("API Gateway Tests To Get List Of Pending Letters", () => {
2727
expect(response.status()).toBe(200);
2828
const responseBody = await response.json();
2929
expect(responseBody.data.length).toBeGreaterThanOrEqual(1);
30-
31-
const validationResult = validateApiResponse(
32-
"get",
33-
"/letters",
34-
response.status(),
35-
responseBody,
36-
);
37-
if (validationResult) {
38-
console.error("API response validation failed:", validationResult);
39-
}
40-
expect(validationResult).toBeUndefined();
4130
});
4231

4332
test("GET /letters with invalid authentication should return 403", async ({

0 commit comments

Comments
 (0)