actually run the new test and remove unrelated tweak

This commit is contained in:
Michael Telatynski 2021-07-16 13:45:10 +01:00
parent 75e4d16462
commit 26fef6f294
3 changed files with 10 additions and 7 deletions

View file

@ -153,7 +153,7 @@
"jest": { "jest": {
"testEnvironment": "jest-environment-jsdom-sixteen", "testEnvironment": "jest-environment-jsdom-sixteen",
"testMatch": [ "testMatch": [
"<rootDir>/test/**/*-test.js" "<rootDir>/test/**/*-test.[tj]s"
], ],
"setupFilesAfterEnv": [ "setupFilesAfterEnv": [
"<rootDir>/node_modules/matrix-react-sdk/test/setupTests.js" "<rootDir>/node_modules/matrix-react-sdk/test/setupTests.js"

View file

@ -35,11 +35,6 @@ type ElectronChannel =
declare global { declare global {
interface Window { interface Window {
Modernizr: ModernizrAPI & FeatureDetects;
Olm: {
init: () => Promise<void>;
};
mxSendRageshake: (text: string, withLogs?: boolean) => void; mxSendRageshake: (text: string, withLogs?: boolean) => void;
matrixChat: ReturnType<Renderer>; matrixChat: ReturnType<Renderer>;

View file

@ -39,4 +39,12 @@ describe("url_utils.ts", function() {
"foo": "bar", "foo": "bar",
}); });
}); });
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",
});
});
}); });