Merge pull request #161 from strongloop/fix/node0.10-test-case

Add keep-alive setting to wrong content type test.
This commit is contained in:
Richard Pringle 2016-09-30 10:29:31 -04:00 committed by GitHub
commit b34801c5ea
1 changed files with 4 additions and 5 deletions

View File

@ -190,17 +190,16 @@ describe('storage service', function () {
});
});
it('uploads file wrong content type', function (done) {
it('uploads file wrong content type', function(done) {
request('http://localhost:' + app.get('port'))
.post('/imageContainers/album1/upload')
.attach('image', path.join(__dirname, './fixtures/app.js'))
.set('Accept', 'application/json')
.set('Connection', 'keep-alive')
.expect('Content-Type', /json/)
.expect(200, function (err, res) {
assert(err);
.expect(500, function(err, res) {
assert(res.body.error.message.indexOf('is not allowed') !== -1);
done();
done(err);
});
});