fix code reference on generate

This commit is contained in:
Sebastian McKenzie
2014-11-04 18:33:33 +11:00
parent cfbaae456b
commit 1df25a633c

View File

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