Files
shields/service-tests/crates.js
Paul Melnikow c3636e7549 Clean up service tests (#1127)
- Consolidate regexes
- Use slimmer syntax where possible
- Fix bug caught by failing amo tests
2017-10-09 14:41:18 -04:00

15 lines
393 B
JavaScript

'use strict';
const ServiceTester = require('./runner/service-tester');
const t = new ServiceTester({ id: 'crates', title: 'crates.io' });
module.exports = t;
t.create('license')
.get('/l/libc.json')
.expectJSON({ name: 'license', value: 'MIT/Apache-2.0' });
t.create('license (with version)')
.get('/l/libc/0.2.31.json')
.expectJSON({ name: 'license', value: 'MIT/Apache-2.0' });