Select Git revision
determine.js
-
Rhys Arkins authored
This PR adds support for renovating the `node_js` versions in `.travis.yml` configuration files. Important notes: - Functionality is disabled by default and hence opt-in via configuration - Added a new manager type `node` because it is anticipated to support more than just Travis in future, with mostly unified logic - Added the config option "policy" with supported values: lts, active, current, lts_latest and lts_active - Policy is actually an array, to allow additive combining, e.g. `["lts_latest", "current"]` - Actual node versions are *hardcoded*. There is no perfect metadata source for this and they change infrequently enough that it is definitely not a problem for now (next change will be in April 2018) - If node versions need updating, they are listed from newest to oldest - Replacing function attempts to detect the indention (spacing) in file and use that To enable, configure `node.enabled=true` and optionally `node.policy=["<policy>"]` if you want something other than `lts`. Closes #1208
Rhys Arkins authoredThis PR adds support for renovating the `node_js` versions in `.travis.yml` configuration files. Important notes: - Functionality is disabled by default and hence opt-in via configuration - Added a new manager type `node` because it is anticipated to support more than just Travis in future, with mostly unified logic - Added the config option "policy" with supported values: lts, active, current, lts_latest and lts_active - Policy is actually an array, to allow additive combining, e.g. `["lts_latest", "current"]` - Actual node versions are *hardcoded*. There is no perfect metadata source for this and they change infrequently enough that it is definitely not a problem for now (next change will be in April 2018) - If node versions need updating, they are listed from newest to oldest - Replacing function attempts to detect the indention (spacing) in file and use that To enable, configure `node.enabled=true` and optionally `node.policy=["<policy>"]` if you want something other than `lts`. Closes #1208
load-simple-icons.spec.js 1.42 KiB
import { expect } from 'chai'
import loadSimpleIcons from './load-simple-icons.js'
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 () {
// As of v5 of simple-icons the slug and exported key is `linuxfoundation`
// with a name of `Linux Foundation`, so ensure we support both as well
// as the legacy mapping of `linux-foundation` for backwards compatibility.
expect(simpleIcons).to.include.key('linuxfoundation')
expect(simpleIcons).to.include.key('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')
})
it('maps overlapping icon titles correctly', function () {
// Both of these icons have the same title: 'Hive', so make sure
// the proper slugs are still mapped to the correct logo
expect(simpleIcons.hive.slug).to.equal('hive')
expect(simpleIcons.hive.title).to.equal('Hive')
expect(simpleIcons.hive_blockchain.slug).to.equal('hive_blockchain')
expect(simpleIcons.hive_blockchain.title).to.equal('Hive')
})
})