Skip to content

Commit

Permalink
published version 2.0.0-beta-41
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnb committed Nov 27, 2018
1 parent 18b3570 commit f865d61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "mui-datatables",
"version": "2.0.0-beta-40",
"version": "2.0.0-beta-41",
"description": "Datatables for React using Material-UI",
"main": "dist/index.js",
"files": [
Expand Down
16 changes: 13 additions & 3 deletions test/MUIDataTableToolbar.test.js
Expand Up @@ -53,7 +53,9 @@ describe("<MUIDataTableToolbar />", function() {
});

it("should render a toolbar", () => {
const mountWrapper = mount(<MUIDataTableToolbar setTableAction={() => {}} columns={columns} data={data} options={options} />);
const mountWrapper = mount(
<MUIDataTableToolbar setTableAction={() => {}} columns={columns} data={data} options={options} />,
);
const actualResult = mountWrapper.find(IconButton);
assert.strictEqual(actualResult.length, 5);
});
Expand Down Expand Up @@ -94,7 +96,9 @@ describe("<MUIDataTableToolbar />", function() {
});

it("should render a toolbar with a search clicking search icon", () => {
const shallowWrapper = shallow(<MUIDataTableToolbar columns={columns} setTableAction={() => {}} data={data} options={options} />)
const shallowWrapper = shallow(
<MUIDataTableToolbar columns={columns} setTableAction={() => {}} data={data} options={options} />,
)
.dive()
.dive()
.dive();
Expand All @@ -110,7 +114,13 @@ describe("<MUIDataTableToolbar />", function() {
it("should hide search after clicking cancel icon", () => {
const searchTextUpdate = () => {};
const shallowWrapper = shallow(
<MUIDataTableToolbar searchTextUpdate={searchTextUpdate} setTableAction={() => {}} columns={columns} data={data} options={options} />,
<MUIDataTableToolbar
searchTextUpdate={searchTextUpdate}
setTableAction={() => {}}
columns={columns}
data={data}
options={options}
/>,
)
.dive()
.dive()
Expand Down

0 comments on commit f865d61

Please sign in to comment.