标签: testing sails.js mocha
如何在测试帆上设置多个标题?
示例:
request(sails.hooks.http.app) .get(endpoint) .set('Content-Type', 'application/json') .set('Authorization', 'Bearer 12345') .expect(function(res) { console.log(res.body); }) .end(done);
如何.set多个标题?