UNPKG

449 BJavaScriptView Raw
1var pomelo = require('../');
2var should = require('should');
3var mockBase = process.cwd() + '/test';
4
5describe('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});