summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/loops/do-while-basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Tests/loops/do-while-basic.js')
-rw-r--r--Libraries/LibJS/Tests/loops/do-while-basic.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/Libraries/LibJS/Tests/loops/do-while-basic.js b/Libraries/LibJS/Tests/loops/do-while-basic.js
deleted file mode 100644
index c935c5f0a6..0000000000
--- a/Libraries/LibJS/Tests/loops/do-while-basic.js
+++ /dev/null
@@ -1,24 +0,0 @@
-test("basic functionality", () => {
- let number = 0;
- do {
- number++;
- } while (number < 9);
- expect(number).toBe(9);
-});
-
-test("no braces", () => {
- let number = 0;
- do number++;
- while (number < 3);
- expect(number).toBe(3);
-});
-
-test("exception in test expression", () => {
- expect(() => {
- do {} while (foo);
- }).toThrow(ReferenceError);
-});
-
-test("automatic semicolon insertion", () => {
- expect("do {} while (false) foo").toEval();
-});