зеркало из https://github.com/github/docs.git
17 строки
457 B
JavaScript
17 строки
457 B
JavaScript
require('../../lib/feature-flags')
|
|
const ffs = require('../../feature-flags')
|
|
|
|
describe('feature flags', () => {
|
|
Object.keys(ffs).forEach(featureName => {
|
|
expect(featureName.startsWith('FEATURE_')).toBe(true)
|
|
})
|
|
|
|
test('feature flag true test is true', async () => {
|
|
expect(process.env.FEATURE_TEST_TRUE).toBeTruthy()
|
|
})
|
|
|
|
test('feature flag false test is false', async () => {
|
|
expect(process.env.FEATURE_TEST_FALSE).toBeFalsy()
|
|
})
|
|
})
|