Commit d428edc9 authored by Sang D NGO's avatar Sang D NGO

#8 reduce number of appearances of 'seed' to help bootstraping new module easier

parent b4268859
......@@ -2,13 +2,12 @@
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_PREFIX = 'seed';
angular.module(MODULE_NAME)
.config(seedApplicationMenu);
function seedApplicationMenu(dynamicDirectiveServiceProvider) {
var home = new dynamicDirectiveServiceProvider.DynamicDirective(true, MODULE_PREFIX + '-application-menu');
var home = new dynamicDirectiveServiceProvider.DynamicDirective(true, 'seed-application-menu');
dynamicDirectiveServiceProvider.addInjection('esn-application-menu', home);
}
......
......@@ -15,13 +15,13 @@ describe('The example API', function() {
if (err) {
return done(err);
}
const seedApp = require(self.testEnv.backendPath + '/webserver/application')(self.helpers.modules.current.deps);
const application = require(self.testEnv.backendPath + '/webserver/application')(self.helpers.modules.current.deps);
const api = require(self.testEnv.backendPath + '/webserver/api')(self.helpers.modules.current.deps, self.helpers.modules.current.lib.lib);
seedApp.use(require('body-parser').json());
seedApp.use('/api', api);
application.use(require('body-parser').json());
application.use('/api', api);
app = self.helpers.modules.getWebServer(seedApp);
app = self.helpers.modules.getWebServer(application);
self.helpers.api.applyDomainDeployment('linagora_IT', function(err, models) {
if (err) {
......
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