Commit b706a0e6 authored by joel Grenon's avatar joel Grenon

Remove service stub decoration

parent d31854b8
......@@ -50,15 +50,6 @@ module.exports = cmbf.launch({testMode: true}).then(function() {
return require(path.resolve(modulePath))(ctx.server, ctx.config, ctx.log);
};
ctx.createServiceStub = function(fn) {
this._oldService = this.server.service;
this.server.decorate('server', 'service', sinon.stub(this.server, 'service', fn));
};
ctx.restoreService = function() {
this.server.decorate('server', 'service', this._oldService);
};
// Loop through all registered plugins and ask them to expose their test mode services
return P.map(_.values(cmbf.server.plugins), function(plugin) {
if(_.isFunction(plugin.setupTestMode)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment