UNPKG

522 BJavaScriptView Raw
1require('./setup');
2
3describe('Test environment', function() {
4 var app;
5
6 beforeEach(function() { app = loadFixtureApp('simple'); });
7
8 it('load test env', function() {
9 app.load('test');
10 app.get('env').should.equal('test');
11 });
12
13 it('should emit load:test:before', function(done) {
14 app.on('load:test:before', function() { done(); });
15 app.load('test');
16 });
17
18 it('should emit load:test:after', function(done) {
19 app.on('load:test:after', function() { done(); });
20 app.load('test');
21 });
22});