-describe("scalarValueString", () => {
- it("[[Call]] replaces invalid values", () => {
- assertStrictEquals(
- scalarValueString("Ii🎙\uDFFF\uDD96\uD83C\uD800🆗☺"),
- "Ii🎙\uFFFD\uFFFD\uFFFD\uFFFD🆗☺",
- );
- });
-
- it("[[Construct]] throws an error", () => {
- assertThrows(() => new scalarValueString(""));
- });
-
- describe(".length", () => {
- it("[[Get]] returns the correct length", () => {
- assertStrictEquals(scalarValueString.length, 1);
- });
- });
-
- describe(".name", () => {
- it("[[Get]] returns the correct name", () => {
- assertStrictEquals(scalarValueString.name, "scalarValueString");
- });
- });
-});
-