]> Lady’s Gitweb - Pisces/blobdiff - symbol.test.js
Add methods for own entries and values to object.js
[Pisces] / symbol.test.js
index 38d74259e7b74f989aec5e331d0bee05848a4c30..03abffcf004730598788077bc913358705657c57 100644 (file)
@@ -39,6 +39,12 @@ describe("getSymbolDescription", () => {
     assertThrows(() => new getSymbolDescription(Symbol()));
   });
 
+  describe(".length", () => {
+    it("[[Get]] returns the correct length", () => {
+      assertStrictEquals(getSymbolDescription.length, 1);
+    });
+  });
+
   describe(".name", () => {
     it("[[Get]] returns the correct name", () => {
       assertStrictEquals(
@@ -69,6 +75,12 @@ describe("symbolToString", () => {
     assertThrows(() => new symbolToString(Symbol()));
   });
 
+  describe(".length", () => {
+    it("[[Get]] returns the correct length", () => {
+      assertStrictEquals(symbolToString.length, 1);
+    });
+  });
+
   describe(".name", () => {
     it("[[Get]] returns the correct name", () => {
       assertStrictEquals(
@@ -110,6 +122,12 @@ describe("symbolValue", () => {
     assertThrows(() => new symbolValue(Symbol()));
   });
 
+  describe(".length", () => {
+    it("[[Get]] returns the correct length", () => {
+      assertStrictEquals(symbolValue.length, 1);
+    });
+  });
+
   describe(".name", () => {
     it("[[Get]] returns the correct name", () => {
       assertStrictEquals(
This page took 0.021667 seconds and 4 git commands to generate.