mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) encode
This commit is contained in:
parent
9dcbd7790d
commit
183700a7d4
1 changed files with 2 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ test('cloudcmd: route: sendIndex: encode', async (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: route: sendIndex: encode', async (t) => {
|
||||
test('cloudcmd: route: sendIndex: encode: not encoded', async (t) => {
|
||||
const name = '"><svg onload=alert(3);>';
|
||||
const files = [{
|
||||
name,
|
||||
|
|
@ -338,7 +338,7 @@ test('cloudcmd: route: sendIndex: encode', async (t) => {
|
|||
const {port, done} = await connect();
|
||||
const data = await getStr(`http://localhost:${port}`);
|
||||
|
||||
t.notOk(data.includes(name), 'should put not encoded name');
|
||||
t.notOk(data.includes(name), 'should not put not encoded name');
|
||||
|
||||
clear('flop');
|
||||
clear(routePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue