UNPKG

pomelo

Version:

Pomelo is a fast, scalable game server framework for [node.js](http://nodejs.org). It provides the basic development framework and many related components, including libraries and tools. Pomelo is also suitable for real-time web applications; its distri

18 lines (15 loc) 466 B
var pomelo = require('../'); var should = require('should'); var mockBase = process.cwd() + '/test'; describe('pomelo', function() { describe('#createApp', function() { it('should create and get app, be the same instance', function(done) { var app = pomelo.createApp({base: mockBase}); should.exist(app); var app2 = pomelo.app; should.exist(app2); should.strictEqual(app, app2); done(); }); }); });