Skip to content

Commit

Permalink
rename module variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthropohedron committed Apr 12, 2015
1 parent 0498af7 commit 81f8d30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test-actions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var aParser = require("./actions");
var actionMgr = require("./actions");

exports["test parse valid"] = function(assert) {
var actions = aParser.parseActions([
var actions = actionMgr.parseActions([
"{",
"+block{nothing}",
"-handle-as-image",
Expand All @@ -13,16 +13,16 @@ exports["test parse valid"] = function(assert) {

exports["test parse invalid"] = function(assert) {
assert.throws(function() {
aParser.parseActions("{ foo +block{nothing} -handle-as-image }");
actionMgr.parseActions("{ foo +block{nothing} -handle-as-image }");
}, "Extra garbage inside braces");
assert.throws(function() {
aParser.parseActions("foo{ +block{nothing} -handle-as-image }");
actionMgr.parseActions("foo{ +block{nothing} -handle-as-image }");
}, "Extra garbage outside braces");
assert.throws(function() {
aParser.parseActions("{ +block{nothing}} -handle-as-image }");
actionMgr.parseActions("{ +block{nothing}} -handle-as-image }");
}, "Extra braces");
assert.throws(function() {
aParser.parseActions("{} +block{nothing} -handle-as-image {}");
actionMgr.parseActions("{} +block{nothing} -handle-as-image {}");
}, "More extra braces");
};

Expand Down

0 comments on commit 81f8d30

Please sign in to comment.