Add statement-no-block test fixture for remove-console/debugger

This commit is contained in:
Jhen 2016-07-18 02:51:41 +08:00
parent e464b9ab87
commit 6cb3e5ed1f
6 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,6 @@
if (blah) console.log(blah);
for (;;) console.log(blah);
for (var blah in []) console.log(blah);
for (var blah of []) console.log(blah);
while (blah) console.log(blah);
do console.log(blah); while (blah);

View File

@ -0,0 +1,6 @@
if (blah) {}
for (;;) {}
for (var blah in []) {}
for (var blah of []) {}
while (blah) {}
do {} while (blah);

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-remove-debugger"]
}

View File

@ -0,0 +1,6 @@
if (blah) debugger;
for (;;) debugger;
for (var blah in []) debugger;
for (var blah of []) debugger;
while (blah) debugger;
do debugger; while (blah);

View File

@ -0,0 +1,6 @@
if (blah) {}
for (;;) {}
for (var blah in []) {}
for (var blah of []) {}
while (blah) {}
do {} while (blah);

View File

@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);