Improve babel-generator's code coverage (#5338)

This commit is contained in:
Alex Kuzmenko 2017-02-25 20:26:29 +02:00 committed by Henry Zhu
parent eb9d699ce9
commit 01918c68c1
5 changed files with 18 additions and 6 deletions

View File

@ -45,12 +45,6 @@ export function ExportAllDeclaration(node: Object) {
this.word("export");
this.space();
this.token("*");
if (node.exported) {
this.space();
this.word("as");
this.space();
this.print(node.exported, node);
}
this.space();
this.word("from");
this.space();

View File

@ -0,0 +1,7 @@
let a = do {
if (x > 10) {
'big';
} else {
'small';
}
};

View File

@ -0,0 +1,7 @@
let a = do {
if (x > 10) {
'big';
} else {
'small';
}
};

View File

@ -0,0 +1,2 @@
foo ||bar;
(x => x)|| bar;

View File

@ -0,0 +1,2 @@
foo || bar;
(x => x) || bar;