mirror of https://github.com/embarklabs/embark.git
update test script
This commit is contained in:
parent
1f5029c9a8
commit
21d329eb6e
|
@ -53,7 +53,13 @@ Plugins.prototype.createPlugin = function(pluginName, pluginConfig) {
|
|||
|
||||
Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
|
||||
var pluginPath = fs.embarkPath('lib/modules/' + pluginName);
|
||||
var plugin = require(pluginPath);
|
||||
var plugin;
|
||||
try {
|
||||
plugin = require(pluginPath);
|
||||
} catch(_e) {
|
||||
pluginPath = fs.embarkPath('modules/' + pluginName);
|
||||
plugin = require(pluginPath);
|
||||
}
|
||||
|
||||
var pluginWrapper = new Plugin({
|
||||
name: pluginName,
|
||||
|
|
|
@ -108,6 +108,7 @@ describe('embark.Contracts', function() {
|
|||
};
|
||||
|
||||
let embarkObj = {
|
||||
registerAPICall: () => {},
|
||||
logger: new Logger({}),
|
||||
events: events
|
||||
};
|
||||
|
@ -232,6 +233,7 @@ describe('embark.Contracts', function() {
|
|||
}
|
||||
|
||||
let embarkObj = {
|
||||
registerAPICall: () => {},
|
||||
logger: new Logger({}),
|
||||
events: events
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue