* Added security headers service. * Small improvements from provided feedback. * Fixed failing tests. * Removed grade condition on render method. * Changed protocol and path from pattern to querystring
8 lines
256 B
JavaScript
8 lines
256 B
JavaScript
'use strict'
|
|
|
|
const t = (module.exports = require('../tester').createServiceTester())
|
|
|
|
t.create('grade of http://shields.io')
|
|
.get('/security-headers.json?url=https://shields.io')
|
|
.expectBadge({ label: 'security headers', message: 'F', color: 'red' })
|