Skip to content

Commit

Permalink
Reduced the number of items asserted when listening for events
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Feb 28, 2013
1 parent 09ef209 commit 4812398
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nools.js
Expand Up @@ -392,7 +392,7 @@ process.binding = function (name) {

});

require.define("/package.json",function(require,module,exports,__dirname,__filename,process,global){module.exports = {"main":"index.js"}
require.define("/package.json",function(require,module,exports,__dirname,__filename,process,global){module.exports = {"main":"index.js","browserify":"browser/nool.js"}
});

require.define("/index.js",function(require,module,exports,__dirname,__filename,process,global){module.exports = exports = require("./lib");
Expand Down
2 changes: 1 addition & 1 deletion nools.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/flow.dsl.test.js
Expand Up @@ -120,7 +120,7 @@ it.describe("Flow dsl",function (it) {
});
session.assert(m);
session.match(function () {
assert.equal(i, 2);
assert.equal(i, fire.length);
next();
});

Expand Down
5 changes: 1 addition & 4 deletions test/flow.test.js
Expand Up @@ -298,10 +298,8 @@ it.describe("Flow",function (it) {
});

it.should("emit when rules are fired", function (next) {
var m = new Message("hello"), m2 = new Message("hello");
var m = new Message("hello");
var fire = [
["Hello", "hello"],
["Goodbye", "hello goodbye"],
["Hello", "hello"],
["Goodbye", "hello goodbye"]
], i = 0;
Expand All @@ -310,7 +308,6 @@ it.describe("Flow",function (it) {
assert.equal(facts.m.message, fire[i++][1]);
});
session.assert(m);
session.assert(m2);
session.match(function () {
assert.equal(i, fire.length);
next();
Expand Down

0 comments on commit 4812398

Please sign in to comment.