Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-09 13:28:29 +01:00
parent a32f12c8f3
commit 7921a6cbf8
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
104 changed files with 12169 additions and 11047 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
import { parseQsFromFragment, parseQs } from "../../../src/vector/url_utils";
describe("url_utils.ts", function() {
describe("url_utils.ts", function () {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const location: Location = {
@ -24,28 +24,28 @@ describe("url_utils.ts", function() {
search: "",
};
it("parseQsFromFragment", function() {
it("parseQsFromFragment", function () {
location.hash = "/home?foo=bar";
expect(parseQsFromFragment(location)).toEqual({
location: "home",
params: {
"foo": "bar",
foo: "bar",
},
});
});
describe("parseQs", function() {
describe("parseQs", function () {
location.search = "?foo=bar";
expect(parseQs(location)).toEqual({
"foo": "bar",
foo: "bar",
});
});
describe("parseQs with arrays", function() {
describe("parseQs with arrays", function () {
location.search = "?via=s1&via=s2&via=s2&foo=bar";
expect(parseQs(location)).toEqual({
"via": ["s1", "s2", "s2"],
"foo": "bar",
via: ["s1", "s2", "s2"],
foo: "bar",
});
});
});