Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
31 lines
841 B
JavaScript
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,
|
|
},
|
|
])
|
|
})
|
|
})
|