Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jzvikart committed Dec 16, 2024
1 parent 11eff66 commit ebba797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ async function test2() {
// TODO
}

const allTests = [test1, test2];
try {
const allTests = [test1, test2];
for (const test of allTests) await runIntegrationTest(test);
} catch (error) {
logError(error);
Expand Down
4 changes: 1 addition & 3 deletions tests/testLibrary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ async function sendPostRequest(url, method, payload) {
try {
const response = await fetch(url, {
method: method,
headers: {
"Content-Type": "application/json"
},
headers: {"Content-Type": "application/json"},
body: JSON.stringify(payload)
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
Expand Down

0 comments on commit ebba797

Please sign in to comment.