Files
shields/lib/load-simple-icons.spec.js
chris48s 13d75e0607 upgrade to prettier 2 (#5051)
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00

30 lines
749 B
JavaScript

'use strict'
const { expect } = require('chai')
const loadSimpleIcons = require('./load-simple-icons')
describe('loadSimpleIcons', function () {
let simpleIcons
before(function () {
simpleIcons = loadSimpleIcons()
})
it('prepares three color themes', function () {
expect(simpleIcons.sentry.base64).to.have.all.keys(
'default',
'light',
'dark'
)
})
it('normalizes icon keys', function () {
// original key in the simple-icons is 'Linux Foundation'
expect(simpleIcons).to.include.key('linux-foundation')
})
// https://github.com/badges/shields/issues/4016
it('excludes "get" function provided by the simple-icons', function () {
expect(simpleIcons).to.not.have.property('get')
})
})