1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:17:45 +00:00

LibJS: Define the Intl.Collator's compare function name to be empty

This commit is contained in:
Timothy Flynn 2022-02-21 10:15:51 -05:00 committed by Linus Groh
parent f3c4146140
commit 96459e4b3a
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,10 @@ describe("correct behavior", () => {
expect(new Intl.Collator().compare).toHaveLength(2);
});
test("name is empty string", () => {
expect(new Intl.Collator().compare.name).toBe("");
});
test("basic functionality", () => {
const collator = new Intl.Collator();
expect(collator.compare("", "")).toBe(0);