Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Nov 3, 2013
1 parent 2cfd974 commit 3b01b7d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/compiler/passes/generate-bytecode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("compiler pass |generateBytecode|", function() {
it("defines correct constants", function() {
expect(pass).toChangeAST(
grammar,
constsDetails(['[]', 'function() { code }'])
constsDetails(['[]', 'function($result) { code }'])
);
});
});
Expand All @@ -126,7 +126,7 @@ describe("compiler pass |generateBytecode|", function() {
it("defines correct constants", function() {
expect(pass).toChangeAST(
grammar,
constsDetails(['"a"', '"\\"a\\""', 'function(a) { code }'])
constsDetails(['"a"', '"\\"a\\""', 'function(a, $result) { code }'])
);
});
});
Expand Down Expand Up @@ -168,7 +168,7 @@ describe("compiler pass |generateBytecode|", function() {
'"\\"b\\""',
'"c"',
'"\\"c\\""',
'function(a, b, c) { code }'
'function(a, b, c, $result) { code }'
]));
});
});
Expand Down Expand Up @@ -325,7 +325,7 @@ describe("compiler pass |generateBytecode|", function() {
it("defines correct constants", function() {
expect(pass).toChangeAST(
grammar,
constsDetails(['function() { code }', '""', 'null'])
constsDetails(['function($result) { code }', '""', 'null'])
);
});
});
Expand Down Expand Up @@ -376,7 +376,7 @@ describe("compiler pass |generateBytecode|", function() {
'"\\"b\\""',
'"c"',
'"\\"c\\""',
'function(a, b, c) { code }',
'function(a, b, c, $result) { code }',
'""'
]));
});
Expand All @@ -402,7 +402,7 @@ describe("compiler pass |generateBytecode|", function() {
it("defines correct constants", function() {
expect(pass).toChangeAST(
grammar,
constsDetails(['function() { code }', '""', 'null'])
constsDetails(['function($result) { code }', '""', 'null'])
);
});
});
Expand Down Expand Up @@ -453,7 +453,7 @@ describe("compiler pass |generateBytecode|", function() {
'"\\"b\\""',
'"c"',
'"\\"c\\""',
'function(a, b, c) { code }',
'function(a, b, c, $result) { code }',
'""'
]));
});
Expand Down

0 comments on commit 3b01b7d

Please sign in to comment.