]>
Lady’s Gitweb - Pisces/blob - symbol.test.js
bedcc72218473d5b8606b9fda7e82006dec2174d
1 // ♓🌟 Piscēs ∷ symbol.test.js
2 // ====================================================================
4 // Copyright © 2023 Lady [@ Lady’s Computer].
6 // This Source Code Form is subject to the terms of the Mozilla Public
7 // License, v. 2.0. If a copy of the MPL was not distributed with this
8 // file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
15 } from "./dev-deps.js";
16 import { getSymbolDescription
} from "./symbol.js";
18 describe("getSymbolDescription", () => {
19 it("[[Call]] returns undefined when the symbol has no description", () => {
20 assertStrictEquals(getSymbolDescription(Symbol()), undefined);
23 it("[[Call]] returns the empty string when the symbol has an empty description", () => {
24 assertStrictEquals(getSymbolDescription(Symbol("")), "");
27 it("[[Call]] returns the description", () => {
29 getSymbolDescription(Symbol("etaoin")),
34 it("[[Call]] returns the empty string when the symbol has an empty description", () => {
35 assertStrictEquals(getSymbolDescription(Symbol("")), "");
38 it("[[Construct]] throws an error", () => {
39 assertThrows(() => new getSymbolDescription(Symbol()));
42 describe(".name", () => {
43 it("[[Get]] returns the correct name", () => {
45 getSymbolDescription
.name
,
46 "getSymbolDescription",
This page took 0.044427 seconds and 3 git commands to generate.