UNPKG

react-awesome-feature-toggles

Version:

Simple feature toggles for react and react router

22 lines (16 loc) 564 B
import chai, { expect } from 'chai' import dirtyChai from 'dirty-chai' import { isToggleEnabled, setFeatureConfig, FeatureToggle } from '../src/index' chai.use(dirtyChai) const { describe, it } = global describe('exports are defined', () => { it('isToggleEnabled should be defined', () => { expect(isToggleEnabled).to.not.be.undefined() }) it('setFeatureConfig should be defined', () => { expect(setFeatureConfig).to.not.be.undefined() }) it('FeatureToggle should be defined', () => { expect(FeatureToggle).to.not.be.undefined() }) })