Skip to content

Commit ebba797

Browse files
committed
Cleanup
1 parent 11eff66 commit ebba797

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test1.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ async function test2() {
1515
// TODO
1616
}
1717

18+
const allTests = [test1, test2];
1819
try {
19-
const allTests = [test1, test2];
2020
for (const test of allTests) await runIntegrationTest(test);
2121
} catch (error) {
2222
logError(error);

tests/testLibrary.mjs

+1-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ async function sendPostRequest(url, method, payload) {
9191
try {
9292
const response = await fetch(url, {
9393
method: method,
94-
headers: {
95-
"Content-Type": "application/json"
96-
},
94+
headers: {"Content-Type": "application/json"},
9795
body: JSON.stringify(payload)
9896
});
9997
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);

0 commit comments

Comments
 (0)