1 | var pomelo = require('../');
|
2 | var should = require('should');
|
3 | var mockBase = process.cwd() + '/test';
|
4 |
|
5 | describe('pomelo', function() {
|
6 | describe('#createApp', function() {
|
7 | it('should create and get app, be the same instance', function(done) {
|
8 | var app = pomelo.createApp({base: mockBase});
|
9 | should.exist(app);
|
10 |
|
11 | var app2 = pomelo.app;
|
12 | should.exist(app2);
|
13 | should.strictEqual(app, app2);
|
14 | done();
|
15 | });
|
16 | });
|
17 | });
|