fix @steedos/filters unit test error

This commit is contained in:
殷亮辉 2022-01-25 03:14:13 +00:00
parent 62c0c7e1b9
commit 474d75d0b3

View File

@ -14,6 +14,6 @@ describe("format formula filter to odata query", () => {
let filters = [["email", "=", "{user.email}"]];
let result = formatFiltersToODataQuery(filters, userContext);
console.log("odata filters query result:", result);
expect(result).to.be.eq("(email eq 'test1@steedos.cn')");
expect(result).to.be.eq(`(email eq '${encodeURIComponent("test1@steedos.cn")}')`);
});
});