Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
17 lines
450 B
JavaScript
17 lines
450 B
JavaScript
'use strict'
|
|
|
|
const { test, given } = require('sazerac')
|
|
const NpmTypeDefinitions = require('./npm-type-definitions.service')
|
|
|
|
const transformAndRender = json =>
|
|
NpmTypeDefinitions.render(NpmTypeDefinitions.transform(json))
|
|
|
|
describe('NPM type definitions badge', function() {
|
|
test(transformAndRender, () => {
|
|
given({ devDependencies: { typescript: '^2.4.7' } }).expect({
|
|
message: 'TypeScript v2.4',
|
|
color: 'blue',
|
|
})
|
|
})
|
|
})
|