We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa822be commit 8b23fb8Copy full SHA for 8b23fb8
test/unit/node/update.test.ts
@@ -65,7 +65,7 @@ describe("update", () => {
65
// i.e. /redirect/10 -> /redirect/9 -> /redirect/8
66
const urlSplit = request.url.split("/")
67
const currentRedirectNumber = urlSplit[urlSplit.length - 1]
68
- const newRedirectNumber = parseInt(currentRedirectNumber) + 1
+ const newRedirectNumber = parseInt(currentRedirectNumber) - 1
69
70
response.writeHead(302, "testing", {
71
location: `/redirect/${String(newRedirectNumber)}`,
0 commit comments