Merge pull request #788 from strongloop/feature/fix-loopback-express
Make sure loopback has all properties from express
This commit is contained in:
commit
bc9076595c
|
@ -2,7 +2,8 @@
|
|||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var express = require('./server-app');
|
||||
var express = require('express');
|
||||
var loopbackExpress = require('./server-app');
|
||||
var proto = require('./application');
|
||||
var fs = require('fs');
|
||||
var ejs = require('ejs');
|
||||
|
@ -52,7 +53,7 @@ loopback.mime = express.mime;
|
|||
*/
|
||||
|
||||
function createApplication() {
|
||||
var app = express();
|
||||
var app = loopbackExpress();
|
||||
|
||||
merge(app, proto);
|
||||
|
||||
|
|
|
@ -359,6 +359,13 @@ describe('loopback', function() {
|
|||
});
|
||||
|
||||
describe('loopback object', function() {
|
||||
it('inherits properties from express', function() {
|
||||
var express = require('express');
|
||||
for (var i in express) {
|
||||
expect(loopback).to.have.property(i, express[i]);
|
||||
}
|
||||
});
|
||||
|
||||
it('exports all built-in models', function() {
|
||||
var expectedModelNames = [
|
||||
'Email',
|
||||
|
|
Loading…
Reference in New Issue