Add failing test for printing comments with retainLines option

This commit is contained in:
Amjad Masad
2015-04-29 14:40:23 -07:00
parent d30415d74a
commit 1a42b72b15
4 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
// comment
print("hello");

View File

@@ -0,0 +1,2 @@
// comment
print("hello");

View File

@@ -0,0 +1,3 @@
{
"retainLines": true
}

View File

@@ -37,7 +37,7 @@ _.each(helper.get("generation"), function (testSuite) {
"es7.exportExtensions": true
}
}, actual.code);
var actualCode = generate(actualAst, null, actual.code).code;
var actualCode = generate(actualAst, task.options, actual.code).code;
chai.expect(actualCode).to.equal(expect.code, actual.loc + " !== " + expect.loc);
});