Example #1
0
File: app.js Project: m0g/ansel
 stop(done) {
   if (this.app && this.app.isRunning()) {
     this.app.stop()
       .then(() => {
         return knex.destroy();
       })
       .then(() => {
         rimraf(testsPath, done);
       });
   }
 }
Example #2
0
	afterEach(() => {
		if (app && app.isRunning()) {
			return app.stop();
		}
	});
	return app.start().then(function() {
		assert.equal(app.isRunning(), true);
		chaiAsPromised.transferPromiseness = app.transferPromiseness;
		return app;
	});
Example #4
0
 after(function () {
   if (App && App.isRunning()) {
     return App.stop()
   }
 })