import {
assert,
assertEquals,
- assertSpyCall,
assertSpyCalls,
assertStrictEquals,
assertThrows,
return "etaoin";
},
});
+ assertEquals([...result], ["etaoin", "e"]);
assertSpyCalls(constraint, 1);
assertStrictEquals(constraint.calls[0].args[0], "etaoin");
assertEquals([...constraint.calls[0].args[1]], ["etaoin", "e"]);
});
});
+ describe("::toString", () => {
+ it("[[Get]] does not throw an error", () => {
+ new Matcher(/(?:)/u).toString();
+ });
+ });
+
describe("::unicode", () => {
it("[[Get]] returns true when the unicode flag is present", () => {
assertStrictEquals(new Matcher(/(?:)/u).unicode, true);