Comparing version 0.7.0-pre7 to 0.7.0-pre8
@@ -248,5 +248,2 @@ var fs = require('fs'); | ||
function create(options) { | ||
fetchManifests(options) | ||
.catch((err) => console.error('Unable to fetch manifests from server:', err)); | ||
var app = express(); | ||
@@ -268,2 +265,3 @@ | ||
create: create, | ||
fetchManifests, | ||
mirrorFile: function (fileName, urlPath, options) { | ||
@@ -270,0 +268,0 @@ var request = { |
{ | ||
"name": "appserver", | ||
"version": "0.7.0-pre7", | ||
"version": "0.7.0-pre8", | ||
"description": "A connect based middleware to support local development against a remote backend.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/appserver", |
@@ -11,2 +11,3 @@ const chai = require('chai'), | ||
before(function (done) { | ||
if (!nock.isActive()) nock.activate(); | ||
nock.disableNetConnect(); | ||
@@ -78,11 +79,2 @@ nock.enableNetConnect('127.0.0.1'); | ||
it('should serve static files when using a version prefix', function () { | ||
return chai.request(server) | ||
.get('/appsuite/v=7.10.x-xx/testfile.txt') | ||
.then(function (res) { | ||
expect(res).to.have.status(200); | ||
expect(res.text).to.have.match(/^success!/); | ||
}); | ||
}); | ||
after(function () { | ||
@@ -89,0 +81,0 @@ server.close(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155399
1254