summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js')
-rw-r--r--Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js b/Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js
deleted file mode 100644
index 8fb05a250c..0000000000
--- a/Libraries/LibJS/Tests/builtins/ArrayBuffer/ArrayBuffer.js
+++ /dev/null
@@ -1,13 +0,0 @@
-test("basic functionality", () => {
- expect(ArrayBuffer).toHaveLength(1);
- expect(ArrayBuffer.name).toBe("ArrayBuffer");
- expect(ArrayBuffer.prototype.constructor).toBe(ArrayBuffer);
- expect(new ArrayBuffer()).toBeInstanceOf(ArrayBuffer);
- expect(typeof new ArrayBuffer()).toBe("object");
-});
-
-test("ArrayBuffer constructor must be invoked with 'new'", () => {
- expect(() => {
- ArrayBuffer();
- }).toThrowWithMessage(TypeError, "ArrayBuffer constructor must be called with 'new'");
-});