diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-06 17:07:29 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-09 23:29:28 +0200 |
commit | 9783a4936cd0677dc3fe12cbf9009eceb47c4d1f (patch) | |
tree | 0746bd12eddd7e4f7d1e0d0bd9219cd259b98c96 /Libraries/LibJS/Tests | |
parent | ffb569fd5d2c37d0721693ef4e8ea2038eb2f68e (diff) | |
download | serenity-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.js | 15 |
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"); +}); |