import { createElement, createContext } from '../../'; import { expect } from 'chai'; /** @jsx createElement */ /* eslint-env browser, mocha */ describe('createContext', () => { it('should return a Provider and a Consumer', () => { const context = createContext(); expect(context).to.have.property('Provider'); expect(context).to.have.property('Consumer'); }); it('should return a valid Provider Component', () => { const { Provider } = createContext(); const contextValue = { value: 'test' }; const children = [