mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
LibJS: Parse the RegExp.prototype.hasIndices flag
This commit is contained in:
parent
e801cc7afd
commit
d1e06b00e3
6 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
test("basic functionality", () => {
|
||||
expect(/foo/.flags).toBe("");
|
||||
expect(/foo/d.flags).toBe("d");
|
||||
expect(/foo/g.flags).toBe("g");
|
||||
expect(/foo/i.flags).toBe("i");
|
||||
expect(/foo/m.flags).toBe("m");
|
||||
|
@ -7,5 +8,5 @@ test("basic functionality", () => {
|
|||
expect(/foo/u.flags).toBe("u");
|
||||
expect(/foo/y.flags).toBe("y");
|
||||
// prettier-ignore
|
||||
expect(/foo/sgimyu.flags).toBe("gimsuy");
|
||||
expect(/foo/dsgimyu.flags).toBe("dgimsuy");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue