Files
reverse-engineering-anything/tests/fixtures/javascript-endpoint-capture/app.js.txt
T
gensokyo-dev 3708538e85 feat(javascript): compare static endpoints with HAR captures (#9090)
* feat(javascript): compare static endpoints with HAR captures

* test(javascript): preserve original HAR fixture bytes during formatting

* test(javascript): load the byte-preserved HAR fixture
2026-11-06 13:34:26 +08:00

7 lines
477 B
Plaintext

function unusedAdmin() { return fetch('/api/admin/export'); }
function templateCandidate() { return fetch('/users/789'); }
function neverContacted() { return fetch('https://never-contact.invalid/route'); }
function translatedValue() { return translate.get('KEY'); }
Promise.all([fetch('/api/users?ordinary=kept-source-only#fragment'), fetch('/users/123'), fetch(window.dynamicTarget)].map(request => request.then(response => response.text()))).then(() => window.done = true);