harcon-radiation
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -31,3 +31,3 @@ var ES6 = require('./ES6Fixer'); | ||
context: inflicter.name, | ||
castOf: function( name, firestarter ){ | ||
castOf: function( name, firestarter, callback ){ | ||
if( firestarter.object ){ | ||
@@ -39,4 +39,5 @@ if( firestarter.object.rest ) | ||
} | ||
callback(); | ||
}, | ||
affiliate: function( firestarter ){ | ||
affiliate: function( firestarter, callback ){ | ||
if( firestarter.object ){ | ||
@@ -48,4 +49,5 @@ if( firestarter.object.rest ) | ||
} | ||
callback(); | ||
}, | ||
close: function(){ | ||
close: function( ){ | ||
if( this.options.closeRest ) | ||
@@ -52,0 +54,0 @@ self.restify.shutdown(); |
{ | ||
"name": "harcon-radiation", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "REST and Websocket plugin for harcon", | ||
@@ -54,3 +54,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon-radiation@0.3.5" | ||
"_id": "harcon-radiation@0.3.6" | ||
} |
@@ -61,2 +61,6 @@ var chai = require('chai'), | ||
callback( null, 'Merci bien. ' + greetings ); | ||
}, | ||
terminus: function( greetings, terms, ignite, callback ){ | ||
console.log('TERMS::', terms); | ||
callback( null, 'Merci bien. ' + greetings ); | ||
} | ||
@@ -133,2 +137,13 @@ }; | ||
}); | ||
it('Division-cared with terms', function(done){ | ||
httphelper.generalCall( 'http://localhost:8080/charming/morning/terminus', 'POST', {'x-api-key':'849b7648-14b8-4154-9ef2-8d1dc4c2b7e9'}, null, { params: ['Szióka!'] }, 'application/json', logger, | ||
function(err, result, status){ | ||
should.not.exist(err); should.exist(result); | ||
expect( result ).to.include( 'Merci bien. Szióka!' ); | ||
done( ); | ||
} | ||
); | ||
}); | ||
it('Test Revoke', function(done){ | ||
@@ -135,0 +150,0 @@ inflicter.detracts( julie ); |
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
26664
396