1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/tests/unit/feature-flags.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

18 lines
521 B
JavaScript

import '../../lib/feature-flags.js'
import readJsonFile from '../../lib/read-json-file.js'
const ffs = readJsonFile('./feature-flags.json')
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()
})
})