1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

Filter out falsey opts in /relations API hits (#2059)

This commit is contained in:
Michael Telatynski
2021-12-13 15:38:03 +00:00
committed by GitHub
parent 6244d77d44
commit 169b6b5572
4 changed files with 20 additions and 8 deletions

View File

@@ -26,6 +26,15 @@ describe("utils", function() {
"foo=bar&baz=beer%40",
);
});
it("should handle boolean and numeric values", function() {
const params = {
string: "foobar",
number: 12345,
boolean: false,
};
expect(utils.encodeParams(params)).toEqual("string=foobar&number=12345&boolean=false");
});
});
describe("encodeUri", function() {