fix cors test

This commit is contained in:
Girish Ramakrishnan
2016-07-02 06:03:33 -05:00
parent 9315e7eb65
commit a863b8fa22

View File

@@ -228,7 +228,7 @@ describe('Server', function () {
.set('Origin', 'http://localhost')
.end(function (error, res) {
expect(res.headers['access-control-allow-methods']).to.be('GET, PUT, DELETE, POST, OPTIONS');
expect(res.headers['access-control-allow-credentials']).to.be('true');
expect(res.headers['access-control-allow-credentials']).to.be('false');
expect(res.headers['access-control-allow-headers']).to.be('accept, origin, x-superagented-with'); // mirrored from superagent
expect(res.headers['access-control-allow-origin']).to.be('http://localhost'); // mirrors from superagent
done();