+// ♓🌟 Piscēs ∷ symbol.test.js
+// ====================================================================
+//
+// Copyright © 2023 Lady [@ Lady’s Computer].
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
+
+import {
+ assertStrictEquals,
+ assertThrows,
+ describe,
+ it,
+} from "./dev-deps.js";
+import { getSymbolDescription } from "./symbol.js";
+
+describe("getSymbolDescription", () => {
+ it("[[Call]] returns undefined when the symbol has no description", () => {
+ assertStrictEquals(getSymbolDescription(Symbol()), undefined);
+ });
+
+ it("[[Call]] returns the empty string when the symbol has an empty description", () => {
+ assertStrictEquals(getSymbolDescription(Symbol("")), "");
+ });
+
+ it("[[Call]] returns the description", () => {
+ assertStrictEquals(
+ getSymbolDescription(Symbol("etaoin")),
+ "etaoin",
+ );
+ });
+
+ it("[[Call]] returns the empty string when the symbol has an empty description", () => {
+ assertStrictEquals(getSymbolDescription(Symbol("")), "");
+ });
+
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new getSymbolDescription(Symbol()));
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ getSymbolDescription.name,
+ "getSymbolDescription",
+ );
+ });
+ });
+});