if-statement-empty-completion.js 205 B

1234
  1. test("if statement consequent/alternate expression returns empty completion", () => {
  2. expect(eval("1; if (true) {}")).toBeUndefined();
  3. expect(eval("1; if (false) {} else {}")).toBeUndefined();
  4. });