1
0
Fork 0
forked from svrjs/svrjs

Fix the description for URL parser test suite

This commit is contained in:
Dorian Niemiec 2024-08-25 14:14:22 +02:00
parent 88554a05d2
commit 6461728eee

View file

@ -1,6 +1,6 @@
const parseURL = require("../../src/utils/urlParserLegacy.js"); const parseURL = require("../../src/utils/urlParserLegacy.js");
describe("URL parser(for SVR.JS 2.x and 3.x mods)", () => { 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:");