1
0
Fork 0
forked from svrjs/svrjs

Modify the description for URL parser test suite

This commit is contained in:
Dorian Niemiec 2024-08-25 14:13:27 +02:00
parent 2884c33c8c
commit 88554a05d2

View file

@ -1,6 +1,6 @@
const parseURL = require("../../src/utils/urlParserLegacy.js"); const parseURL = require("../../src/utils/urlParserLegacy.js");
describe("URL parser", () => { describe("URL parser(for SVR.JS 2.x and 3.x mods)", () => {
test("should parse a simple URL", () => { test("should parse a simple URL", () => {
const parsedUrl = parseURL("http://example.com"); const parsedUrl = parseURL("http://example.com");
expect(parsedUrl.protocol).toBe("http:"); expect(parsedUrl.protocol).toBe("http:");