import React from 'react';

import { mount } from 'enzyme';
import {expect} from 'chai';

import { Toolbar } from '../../../../src/notebook/components/cell/toolbar';

describe('Toolbar', () => {
  it('should be able to render a toolbar', () => {
    const toolbar = mount(
      <Toolbar />
    );
    expect(toolbar).to.not.be.null;
    expect(toolbar.find('div.cell-toolbar').length).to.be.greaterThan(0);
  });
  it('setHoverState does not error', () => {
    const toolbar = mount(
      <Toolbar setHoverState={() => {}}/>
    );
    expect(() => toolbar.instance().setHoverState({
      clientX: 0,
      clientY: 0,
    })).to.not.throw(Error);
  });
});

@@ -79,24 +79,70 @@
 om 'chai';%0A%0A
+import %7B dummyStore %7D from '../../../utils';%0A%0A
 import %7B Too
@@ -697,12 +697,238 @@
 ;%0A  %7D);%0A
+  it('clearCellOutput does not throw error', () =%3E %7B%0A    const toolbar = mount(%0A      %3CToolbar /%3E, %7B context: %7B store: dummyStore() %7D%7D%0A    );%0A    expect(() =%3E %7Btoolbar.instance().clearCellOutput()%7D).to.not.throw(Error);%0A  %7D);%0A
 %7D);%0A

Add test for clearCellOutput