Skip to content

Commit 6db1d62

Browse files
committed
Lint
1 parent 44d9f9d commit 6db1d62

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/helper.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ async function callBatch(POST, baseUrl, requests, boundary = "boundary") {
120120
payload.push(`${request.method} ${request.url} HTTP/1.1`);
121121
payload.push(...(request.headers ?? []));
122122
if (request.body) {
123-
if (!request.headers.find((header) => {
124-
return header.startsWith("Content-Type:");
125-
})) {
123+
if (
124+
!request.headers.find((header) => {
125+
return header.startsWith("Content-Type:");
126+
})
127+
) {
126128
payload.push("Content-Type: application/json");
127129
}
128130
payload.push(JSON.stringify(request.body));
@@ -198,5 +200,5 @@ module.exports = {
198200
processOutbox,
199201
connectToWS,
200202
wait,
201-
callBatch
203+
callBatch,
202204
};

test/scheduling/monitor.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ describe("Monitoring Service", () => {
106106
{
107107
method: "GET",
108108
url: "JobResult(b2eb590f-9505-4fd6-a5e2-511a1b2ff47f)/data",
109-
headers: [
110-
"Accept: text/plain",
111-
]
112-
}
109+
headers: ["Accept: text/plain"],
110+
},
113111
]);
114112
expect(cleanData(response.data)).toMatchSnapshot();
115113
});

0 commit comments

Comments
 (0)