Skip to content

Commit e26e86c

Browse files
committed
add non_object endpoint to test server
1 parent 7f32776 commit e26e86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ app.get("/", (req, res) => {
77
res.send(`
88
<!DOCTYPE html>
99
<script type="text/javascript">
10-
const endpoints = ["rate_limit", "invalid_json", "no_next_page", "duplicate_ids", "invalid_id"];
10+
const endpoints = ["rate_limit", "invalid_json", "non_object", "no_next_page", "duplicate_ids", "invalid_id"];
1111
setInterval(() => {
1212
for (const endpoint of endpoints) {
1313
console.log("API request to " + endpoint);
@@ -32,7 +32,7 @@ app.get("/invalid_json", (req, res) => {
3232
res.send("invalid");
3333
});
3434

35-
app.get("non_object", (req, res) => {
35+
app.get("/non_object", (req, res) => {
3636
res.send("1");
3737
});
3838

0 commit comments

Comments
 (0)