X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/54b756dbfe3e86b528253082215a9354e14313f0..07762ac4c632a6436d43d50d58c8d91760e81e44:/function.test.js diff --git a/function.test.js b/function.test.js index bf0e907..1b9ea74 100644 --- a/function.test.js +++ b/function.test.js @@ -1,11 +1,14 @@ -// ♓🌟 Piscēs ∷ function.test.js -// ==================================================================== -// -// Copyright © 2022–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 . +// SPDX-FileCopyrightText: 2022, 2023, 2025 Lady +// SPDX-License-Identifier: MPL-2.0 +/** + * ⁌ ♓🧩 Piscēs ∷ function.test.js + * + * Copyright © 2022–2023, 2025 Lady [@ Ladys 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 . + */ import { assert, @@ -338,8 +341,8 @@ describe("createArrowFunction", () => { it("[[Call]] returns a function with no prototype property", () => { assert( - !("prototype" in - createArrowFunction(function () {}, { prototype: {} })), + !("prototype" + in createArrowFunction(function () {}, { prototype: {} })), ); }); @@ -430,8 +433,8 @@ describe("createCallableFunction", () => { it("[[Call]] returns a function with no prototype property", () => { assert( - !("prototype" in - createCallableFunction(function () {}, { prototype: {} })), + !("prototype" + in createCallableFunction(function () {}, { prototype: {} })), ); }); @@ -665,7 +668,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~", () => { + describe("()", () => { it("[[Call]] throws an error", () => { assertThrows(() => { createProxyConstructor({})(); @@ -710,7 +713,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~is[[.name]]", () => { + describe("().is[[.name]]", () => { it("[[GetOwnProperty]] defines the appropriate method", () => { assertNotStrictEquals( Object.getOwnPropertyDescriptor( @@ -799,7 +802,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~length", () => { + describe("().length", () => { it("[[GetOwnProperty]] has the correct descriptor", () => { assertEquals( Object.getOwnPropertyDescriptor( @@ -816,7 +819,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~name", () => { + describe("().name", () => { it("[[GetOwnProperty]] has the correct descriptor", () => { assertEquals( Object.getOwnPropertyDescriptor( @@ -833,7 +836,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~prototype", () => { + describe("().prototype", () => { it("[[GetOwnProperty]] has the correct descriptor", () => { assertEquals( Object.getOwnPropertyDescriptor( @@ -850,7 +853,7 @@ describe("createProxyConstructor", () => { }); }); - describe("~revocable", () => { + describe("().revocable", () => { it("[[Call]] produces a revocable proxy", () => { const obj = {}; const proxyConstructor = createProxyConstructor({