Merge pull request #1384 from amasad/master

Add failing test for printing comments with retainLines option
This commit is contained in:
Sebastian McKenzie 2015-04-29 22:44:03 +01:00
commit 09e45c51a4
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);
});