@jianghujs/jianghu
Version:
Progressive Enterprise Framework
35 lines (31 loc) • 878 B
JavaScript
;
const assert = require('assert');
const egg = require('..');
const utils = require('./utils');
const path = require('path');
describe('test/index.test.js', () => {
before(() => {
this.app = utils.app('apps/jianghu-config');
return this.app.ready();
});
after(async () => {
await utils.deleteFileAndDirByPath(path.join(process.cwd(), 'test/fixtures/apps/jianghu-config/run'));
await utils.deleteFileAndDirByPath(path.join(process.cwd(), 'test/fixtures/apps/jianghu-config/logs'));
this.app.close();
});
it('should expose properties', () => {
assert.deepEqual(Object.keys(egg).sort(), [
'Agent',
'AgentWorkerLoader',
'AppWorkerLoader',
'Application',
'BaseContextClass',
'Boot',
'Controller',
'Service',
'Subscription',
'start',
'startCluster',
]);
});
});