polyfill-service
Version:
A polyfill combinator
12 lines (9 loc) • 342 B
JavaScript
/* eslint-env mocha */
;
module.exports = itRespondsWithContentType;
function itRespondsWithContentType(contentType) {
it(`responds with a Content-Type of "${contentType}"`, function(done) {
const regexp = new RegExp(`${contentType}`.replace('+', '\\+'), 'i');
this.request.expect('Content-Type', regexp).end(done);
});
}