From 1a77a46396f4d5dc321bde8555fa432e3eb50cab Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Wed, 15 May 2024 17:04:53 +0000 Subject: [PATCH] test: update imports --- src/test/test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/test.js b/src/test/test.js index b3bcff04..f26f3b95 100644 --- a/src/test/test.js +++ b/src/test/test.js @@ -5,7 +5,7 @@ import { services } from "../modules/config.js"; import { extract } from "../modules/processing/url.js"; import match from "../modules/processing/match.js"; import { loadJSON } from "../modules/sub/loadFromFs.js"; -import { checkJSONPost } from "../modules/sub/utils.js"; +import { normalizeRequest } from "../modules/processing/request.js"; import { env } from "../modules/config.js"; env.apiURL = 'http://localhost:9000' @@ -35,9 +35,8 @@ for (let i in services) { let params = {...{url: test.url}, ...test.params}; console.log(params); - let chck = checkJSONPost(params); + let chck = normalizeRequest(params); if (chck) { - chck["ip"] = "d21ec524bc2ade41bef569c0361ac57728c69e2764b5cb3cb310fe36568ca53f"; // random sha256 const parsed = extract(chck.url); if (parsed === null) { throw `Invalid URL: ${chck.url}`