polyfill-service
Version:
A polyfill combinator
24 lines (19 loc) • 779 B
JavaScript
/* eslint-env mocha */
;
const assert = require('proclaim');
const itRespondsWithContentType = require('./helpers/it-responds-with-content-type');
const itRespondsWithHeader = require('./helpers/it-responds-with-header');
const itRespondsWithStatus = require('./helpers/it-responds-with-status');
const setupRequest = require('./helpers/setup-request');
describe('GET /robots.txt', function() {
setupRequest('GET', '/robots.txt');
itRespondsWithStatus(200);
itRespondsWithContentType('text/plain');
itRespondsWithHeader('surrogate-key', 'polyfill-service');
it('does not disallow any paths', function() {
return this.request.expect(response => {
assert.isString(response.text);
assert.equal(response.text, "User-agent: *\nDisallow:");
});
});
});