Comparing version 0.9.8 to 0.9.9
@@ -101,3 +101,2 @@ var async = require('async'); | ||
var self = this; | ||
var matching = this.firestarters.filter( function( fs ){ return fs.matches( comm.division, comm.event ); } ); | ||
@@ -104,0 +103,0 @@ |
@@ -41,3 +41,3 @@ var Communication = require('./Communication'); | ||
for( i=0; i<this.divisionPath.length; i+=1 ){ | ||
if( i >= dPath.length || this.divisionPath[i] !== dPath[i] ) return false; | ||
if( i >= dPath.length || (this.divisionPath[i] && this.divisionPath[i] !== dPath[i]) ) return false; | ||
} | ||
@@ -44,0 +44,0 @@ return true; |
{ | ||
"name": "harcon", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon@0.9.8" | ||
"_id": "harcon@0.9.9" | ||
} |
@@ -11,3 +11,6 @@ module.exports = { | ||
callback(null, 'Enchanté, mon plaisir!'); | ||
}, | ||
simple: function (greetings1, greetings2, callback) { | ||
callback( null, 'Pas du tout!' ); | ||
} | ||
}; |
@@ -16,3 +16,3 @@ var chai = require("chai"); | ||
before(function(done){ | ||
var logger = Logger.createWinstonLogger( { file: 'test.log', level: 'debug' } ); | ||
var logger = Logger.createWinstonLogger( { file: 'test.log', level: 'info' } ); | ||
@@ -80,2 +80,18 @@ // Initializes the Harcon system | ||
}); | ||
it('Division test', function(done){ | ||
// Sending a morning message and waiting for the proper answer | ||
inflicter.ignite( 'click', 'greet.simple', 'Hi', 'Ca vas?', function(err, res){ | ||
console.log( err, res ); | ||
should.not.exist(err); should.exist(res); | ||
expect( res ).to.include( 'Hi there!' ); | ||
expect( res ).to.include( 'My pleasure!' ); | ||
expect( res ).to.include( 'Bonjour!' ); | ||
expect( res ).to.include( 'Pas du tout!' ); | ||
done( ); | ||
} ); | ||
}); | ||
}); | ||
@@ -82,0 +98,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
694652
35
9484