Fix incorrect usage of `app` in app.test.js

The `beforeEach` hook was using a local `var app`, the test was
accessing global `app` created by `test/support.js`.
This commit is contained in:
Miroslav Bajtoš 2014-02-04 20:27:14 +01:00
parent 323d5f80b0
commit 4a076f13fd
2 changed files with 1 additions and 3 deletions

View File

@ -78,8 +78,6 @@ describe('app', function() {
describe('app.boot([options])', function () {
beforeEach(function () {
var app = this.app = loopback();
app.boot({
app: {
port: 3000,

View File

@ -17,7 +17,7 @@ request = require('supertest');
loopback.User.settings.saltWorkFactor = 4;
beforeEach(function () {
app = loopback();
this.app = app = loopback();
// setup default data sources
loopback.setDefaultDataSourceForType('db', {