Skip to content

Commit

Permalink
Merge pull request #132 from opentable/fix-mock-plugin-registration
Browse files Browse the repository at this point in the history
have to actually call registry.register for the plugins
  • Loading branch information
matteofigus committed Oct 26, 2015
2 parents 68d9ac4 + 7442499 commit bd6b04a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/facade/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ module.exports = function(dependencies){
var registerPlugins = function(registry){
var mockedPlugins = getMockedPlugins(logger);

mockedPlugins.forEach(function(p){
registry.register(p);
});

registry.on('request', function(data){
if(data.errorCode === 'PLUGIN_MISSING_FROM_REGISTRY'){
logger.log(format(strings.errors.cli.PLUGIN_MISSING_FROM_REGISTRY, data.errorDetails, strings.commands.cli.MOCK_PLUGIN.blue).red);
Expand Down

0 comments on commit bd6b04a

Please sign in to comment.