UNPKG

538 BJavaScriptView Raw
1require('./setup');
2
3describe('Expo', function() {
4 var app;
5
6 beforeEach(function() { app = loadFixtureApp('simple'); });
7
8 beforeEach(function() {
9 app.load();
10 });
11
12 it('default environment', function() {
13 app.get('env').should.equal('development');
14 });
15
16 it('default route should work (/)', function(done) {
17 request(app)
18 .get('/')
19 .expect(200, done);
20 });
21
22 it('app.path', function() {
23 var origin = path.resolve(fixturePath('simple/routes'));
24 app.path('routes').should.equal(origin);
25 });
26});