Files
shields/lib/all-badge-examples.spec.js
Paul Melnikow 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

31 lines
841 B
JavaScript

'use strict'
const { expect } = require('chai')
const allBadgeExamples = require('./all-badge-examples')
describe('The badge examples', function() {
it('should include AppVeyor, which is added automatically', function() {
const { examples } = allBadgeExamples.findCategory('build')
const appVeyorBuildExamples = examples
.filter(ex => ex.title.includes('AppVeyor'))
.filter(ex => !ex.title.includes('tests'))
expect(appVeyorBuildExamples).to.deep.equal([
{
title: 'AppVeyor',
previewUri: '/appveyor/ci/gruntjs/grunt.svg',
exampleUri: undefined,
documentation: undefined,
},
{
title: 'AppVeyor branch',
previewUri: '/appveyor/ci/gruntjs/grunt/master.svg',
exampleUri: undefined,
documentation: undefined,
},
])
})
})