import 'mocha'; import * as chai from 'chai'; import * as sinonChai from 'sinon-chai'; import CreditCardIconDriver from './CreditCardIcon.driver'; import {eventually} from '../../../../test/helpers'; chai.use(sinonChai); describe('CollapsedPayment component', () => { let driver: CreditCardIconDriver = null; beforeEach(() => { driver = new CreditCardIconDriver().when.render(); }); afterEach(() => driver.cleanup()); it(`should present the component`, () => eventually(() => { driver.has.root().should.be.true; }) ); });