Files
shields/services/crates/crates.tester.js
T
Paul MelnikowandGitHub 7a664ca3e8 Run prettier (#1866)
Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
2018-08-08 17:57:14 -04:00

15 lines
381 B
JavaScript

'use strict'
const ServiceTester = require('../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' })