1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Files
docs/tests/unit/feature-flags.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

17 lines
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()
})
})