Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
import { getDisplayURL } from "../getURL";
describe("getUrl", () => {
it("handles normal url with http and https for filename", function () {
expect(urlObject.filename).toBe("b.js");
expect(urlObject2.filename).toBe("b.js");
});
it("handles url with querystring for filename", function () {
expect(urlObject.filename).toBe("b.js");
});
it("handles url with '#' for filename", function () {
expect(urlObject.filename).toBe("b.js");
});
it("handles url with no file extension for filename", function () {
expect(urlObject.filename).toBe("c");
});
it("handles url with no name for filename", function () {
expect(urlObject.filename).toBe("(index)");
});
it("separates resources by protocol and host", () => {
});
it("creates a group name for webpack", () => {
expect(urlObject.group).toBe("Webpack");
});
it("creates a group name for angular source", () => {
expect(urlObject.group).toBe("Angular");
});
});