Test for garbage characters in id (prevent #482)

This commit is contained in:
dangered wolf 2023-11-12 00:13:41 -05:00
parent 19dbeee43f
commit 026a1f50d6
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -107,9 +107,9 @@ test('Tweet response robot', async () => {
expect(result.status).toEqual(200);
});
test('Tweet response robot (trailing slash/query string)', async () => {
test('Tweet response robot (trailing slash/query string and extra characters)', async () => {
const result = await app.request(
new Request('https://fxtwitter.com/jack/status/20/?asdf=ghjk&klop;', {
new Request('https://fxtwitter.com/jack/status/20||/?asdf=ghjk&klop;', {
method: 'GET',
headers: botHeaders
})