Merge pull request #1384 from amasad/master
Add failing test for printing comments with retainLines option
This commit is contained in:
commit
09e45c51a4
@ -0,0 +1,2 @@
|
||||
// comment
|
||||
print("hello");
|
||||
@ -0,0 +1,2 @@
|
||||
// comment
|
||||
print("hello");
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"retainLines": true
|
||||
}
|
||||
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user