summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2020-07-06 17:07:29 -0700
committerAndreas Kling <kling@serenityos.org>2020-07-09 23:29:28 +0200
commit9783a4936cd0677dc3fe12cbf9009eceb47c4d1f (patch)
tree0746bd12eddd7e4f7d1e0d0bd9219cd259b98c96 /Libraries/LibJS/Tests
parentffb569fd5d2c37d0721693ef4e8ea2038eb2f68e (diff)
downloadserenity-9783a4936cd0677dc3fe12cbf9009eceb47c4d1f.zip
LibJS: Add test for well-known symbols
Diffstat (limited to 'Libraries/LibJS/Tests')
-rw-r--r--Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js b/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js
new file mode 100644
index 0000000000..204e69882c
--- /dev/null
+++ b/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js
@@ -0,0 +1,15 @@
+test("basic functionality", () => {
+ expect(Symbol).toHaveProperty("iterator");
+ expect(Symbol).toHaveProperty("asyncIterator");
+ expect(Symbol).toHaveProperty("match");
+ expect(Symbol).toHaveProperty("matchAll");
+ expect(Symbol).toHaveProperty("replace");
+ expect(Symbol).toHaveProperty("search");
+ expect(Symbol).toHaveProperty("split");
+ expect(Symbol).toHaveProperty("hasInstance");
+ expect(Symbol).toHaveProperty("isConcatSpreadable");
+ expect(Symbol).toHaveProperty("unscopables");
+ expect(Symbol).toHaveProperty("species");
+ expect(Symbol).toHaveProperty("toPrimitive");
+ expect(Symbol).toHaveProperty("toStringTag");
+});