Support credentials true #15

This commit is contained in:
Typicode
2014-08-07 19:10:30 +02:00
parent ba15b5a69b
commit c0d43ef437
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ describe('Server', function() {
it('should respond with json and corresponding resources', function(done) {
request(server)
.get('/posts')
.set('Origin', 'http://example.com')
.expect('Content-Type', /json/)
.expect('Access-Control-Allow-Credentials', 'true')
.expect('Access-Control-Allow-Origin', 'http://example.com')
.expect(low.db.posts)
.expect(200, done)
})