* update to eslint 6.8.0 and related packages * Fixes for no-prototype-builtins * Updates for explicit-function-return-type * Add ignores for no-explicit-any * update to eslint 6.8.0 and related packages * Fixes for no-prototype-builtins * Updates for explicit-function-return-type * Add ignores for no-explicit-any * package: activate eslint-config-standard * apply updated eslint configuration * lint: apply eslint feedback after rebase * Update lockfile * Update lockfile * Restore missing deps * Update lockfile * Re-add eslint-plugin-node * Add eslint-plugin-standard and eslint-plugin-react-hooks * Clean lint Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
30 lines
744 B
JavaScript
30 lines
744 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')
|
|
})
|
|
})
|