diff options
Diffstat (limited to 'Libraries/LibJS/Tests/builtins/Symbol/Symbol.js')
-rw-r--r-- | Libraries/LibJS/Tests/builtins/Symbol/Symbol.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Libraries/LibJS/Tests/builtins/Symbol/Symbol.js b/Libraries/LibJS/Tests/builtins/Symbol/Symbol.js deleted file mode 100644 index 2533f593c7..0000000000 --- a/Libraries/LibJS/Tests/builtins/Symbol/Symbol.js +++ /dev/null @@ -1,19 +0,0 @@ -test("basic functionality", () => { - const s1 = Symbol("foo"); - const s2 = Symbol("foo"); - - expect(s1).not.toBe(s2); - expect(s1.description).toBe("foo"); - expect(s2.description).toBe("foo"); - - s1.description = "bar"; - expect(s1.description).toBe("foo"); - - expect(typeof s1).toBe("symbol"); -}); - -test("constructing symbol from symbol is an error", () => { - expect(() => { - Symbol(Symbol("foo")); - }).toThrowWithMessage(TypeError, "Cannot convert symbol to string"); -}); |