JS: Add test

This commit is contained in:
Asger F
2025-02-11 10:40:04 +01:00
parent e1c810a50c
commit b123a3c57a
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
| tst16.js:5 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
| tst16.js:6 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
| tst16.js:7 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |

View File

@@ -0,0 +1,8 @@
import queryString from 'query-string';
import querystringify from 'querystringify';
function foo() {
location.href = queryString.parse(location.search).data; // NOT OK
location.href = queryString.extract(location.search); // NOT OK
location.href = querystringify.parse(location.search).data; // NOT OK
}