1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibJS: Use Unicode normalization within String.prototype.normalize

This commit is contained in:
Timothy Flynn 2022-10-06 10:48:22 -04:00 committed by Linus Groh
parent 19b758ce8b
commit 7fc03e8967
2 changed files with 6 additions and 5 deletions

View file

@ -36,8 +36,7 @@ test("Invalid object throws", () => {
);
});
// Tests below here are skipped due to the function being a stub at the moment
test.skip("Normalization works", () => {
test("Normalization works", () => {
var s = "\u1E9B\u0323";
expect(s.normalize("NFC")).toBe("\u1E9B\u0323");
@ -46,7 +45,7 @@ test.skip("Normalization works", () => {
expect(s.normalize("NFKD")).toBe("\u0073\u0323\u0307");
});
test.skip("Default parameter is NFC", () => {
test("Default parameter is NFC", () => {
var s = "\u1E9B\u0323";
expect(s.normalize("NFC")).toBe(s.normalize());