update generation test to new api

This commit is contained in:
Sebastian McKenzie
2014-11-09 12:13:55 +11:00
parent 3f4068ae00
commit 07c15f02e6

View File

@@ -27,7 +27,7 @@ _.each(helper.get("generation"), function (testSuite) {
var actual = task.actual;
var actualAst = util.parse({ filename: actual.loc }, actual.code);
var actualCode = generate(actual.code, actualAst).code;
var actualCode = generate(actualAst, null, actual.code).code;
chai.expect(actualCode).to.equal(expect.code, actual.loc + " !== " + expect.loc);
});