pomelo.js 449 B

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