import * as React from "react";
import {mount} from "enzyme";
const bemBlock = require('bem-cn')
import {
ItemComponent,
CheckboxItemComponent
} from "./ItemComponents"
import {fastClick, hasClass, jsxToHTML, printPrettyHtml} from "../../__test__/TestHelpers"
describe("ItemComponents", ()=> {
beforeEach(()=> {
this.bemBlocks = {
container:bemBlock("sk-item-container"),
option:bemBlock("sk-item-option")
}
this.onClick = jasmine.createSpy("toggleItem")
this.props = {
label:"Images", count:10, itemKey:"images",
onClick: this.onClick,
bemBlocks:this.bemBlocks, showCount:true
}
})
it("should render and behave correctly", ()=> {
this.wrapper = mount(