mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-11 05:20:53 +01:00
Test for garbage characters in id (prevent #482)
This commit is contained in:
parent
19dbeee43f
commit
026a1f50d6
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ test('Tweet response robot', async () => {
|
||||||
expect(result.status).toEqual(200);
|
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(
|
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',
|
method: 'GET',
|
||||||
headers: botHeaders
|
headers: botHeaders
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue