Skip to content

Commit a6ad5c2

Browse files
fix linting errors
1 parent b2e7c6f commit a6ad5c2

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

tests/config/global-setup.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { logger } from "tests/helpers/pino-logger";
12
import {
23
checkSupplierExists,
34
createSupplierEntry,
@@ -6,9 +7,9 @@ import {
67
import { SUPPLIERID } from "../constants/api-constants";
78

89
async function globalSetup() {
9-
console.log("");
10-
console.log("*** BEGINNING GLOBAL SETUP ***");
11-
console.log("");
10+
logger.info("");
11+
logger.info("*** BEGINNING GLOBAL SETUP ***");
12+
logger.info("");
1213

1314
// create test data
1415

@@ -17,19 +18,19 @@ async function globalSetup() {
1718
// check supplier exists
1819
const supplier = await checkSupplierExists(SUPPLIERID);
1920
if (supplier) {
20-
console.log(`Supplier with ID ${SUPPLIERID} already exists.`);
21-
console.log("");
22-
console.log("*** GLOBAL SETUP COMPLETE ***");
23-
console.log("");
21+
logger.info(`Supplier with ID ${SUPPLIERID} already exists.`);
22+
logger.info("");
23+
logger.info("*** GLOBAL SETUP COMPLETE ***");
24+
logger.info("");
2425
return;
2526
}
2627

27-
console.log(`Creating supplier entry with ID: ${SUPPLIERID}`);
28+
logger.info(`Creating supplier entry with ID: ${SUPPLIERID}`);
2829
await createSupplierEntry(SUPPLIERID);
2930

30-
console.log("");
31-
console.log("*** GLOBAL SETUP COMPLETE ***");
32-
console.log("");
31+
logger.info("");
32+
logger.info("*** GLOBAL SETUP COMPLETE ***");
33+
logger.info("");
3334
}
3435

3536
export default globalSetup;

tests/helpers/aws-lambda-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function updateLambdaEnv(
2424
functionArn: string,
2525
variables: Record<string, string>,
2626
) {
27-
return await lambdaClient.send(
27+
return lambdaClient.send(
2828
new UpdateFunctionConfigurationCommand({
2929
FunctionName: functionArn,
3030
Environment: { Variables: variables },

tests/performance/testCases/send-prepared-letter-request.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { retrieveKinesisRecordsAtTimestamp } from "tests/helpers/aws-kinesis-hel
88
import { logger } from "tests/helpers/pino-logger";
99
import { envName } from "tests/constants/api-constants";
1010
import PREPARED_LETTER from "../../resources/prepared-letter.json";
11-
import { assert } from "console";
1211

1312
test.describe("Performance test checking how long it takes letter requests from the EventSub SNS to reach the Letters Database ", () => {
1413
test("send 2500 letter requests", async () => {

0 commit comments

Comments
 (0)