Merge pull request #180 from strongloop/update-lb-3-rc
Update deps to loopback 3.0.0 RC
This commit is contained in:
commit
1fa6754c23
|
@ -26,7 +26,7 @@
|
||||||
"chai": "^3.2.0",
|
"chai": "^3.2.0",
|
||||||
"eslint": "^2.8.0",
|
"eslint": "^2.8.0",
|
||||||
"eslint-config-loopback": "^2.0.0",
|
"eslint-config-loopback": "^2.0.0",
|
||||||
"loopback": "^3.0.0-alpha.4",
|
"loopback": "^3.0.0",
|
||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"supertest": "^1.0.1"
|
"supertest": "^1.0.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -144,7 +144,7 @@ describe('explorer', function() {
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
|
|
||||||
// expect the content of `dummy-swagger-ui/swagger-ui.js`
|
// expect the content of `dummy-swagger-ui/swagger-ui.js`
|
||||||
expect(res.text).to.contain('/* custom swagger-ui file */' + os.EOL);
|
expect(res.text).to.contain('/* custom swagger-ui file */');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
@ -153,9 +153,12 @@ describe('explorer', function() {
|
||||||
it('overrides strongloop overrides', function(done) {
|
it('overrides strongloop overrides', function(done) {
|
||||||
request(app).get('/explorer/')
|
request(app).get('/explorer/')
|
||||||
.expect(200)
|
.expect(200)
|
||||||
// expect the content of `dummy-swagger-ui/index.html`
|
.end(function(err, res) {
|
||||||
.expect('custom index.html' + os.EOL)
|
if (err) return done(er);
|
||||||
.end(done);
|
// expect the content of `dummy-swagger-ui/index.html`
|
||||||
|
expect(res.text).to.contain('custom index.html');
|
||||||
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -231,9 +234,12 @@ describe('explorer', function() {
|
||||||
|
|
||||||
request(app).get('/explorer/')
|
request(app).get('/explorer/')
|
||||||
.expect(200)
|
.expect(200)
|
||||||
// expect the content of `dummy-swagger-ui/index.html`
|
.end(function(err, res) {
|
||||||
.expect('custom index.html' + os.EOL)
|
if (err) return done(err);
|
||||||
.end(done);
|
// expect the content of `dummy-swagger-ui/index.html`
|
||||||
|
expect(res.text).to.contain('custom index.html');
|
||||||
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should allow `uiDirs` to be defined as an String', function(done) {
|
it('should allow `uiDirs` to be defined as an String', function(done) {
|
||||||
|
@ -243,9 +249,12 @@ describe('explorer', function() {
|
||||||
|
|
||||||
request(app).get('/explorer/')
|
request(app).get('/explorer/')
|
||||||
.expect(200)
|
.expect(200)
|
||||||
// expect the content of `dummy-swagger-ui/index.html`
|
.end(function(err, res) {
|
||||||
.expect('custom index.html' + os.EOL)
|
if (err) return done(err);
|
||||||
.end(done);
|
// expect the content of `dummy-swagger-ui/index.html`
|
||||||
|
expect(res.text).to.contain('custom index.html');
|
||||||
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue