Skip to content

Commit

Permalink
EditableCell tests flup from #2701
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Gray committed Aug 1, 2018
1 parent 2c419d4 commit ad0b74f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/table/test/editableCellTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@ describe("<EditableCell>", () => {

it("defaults to no wrapText", () => {
const elem = mount(<EditableCell />);

expect(elem.find(`.${Classes.TABLE_NO_WRAP_TEXT}`).children().length).to.equal(1);
expect(elem.find(`.${Classes.TABLE_NO_WRAP_TEXT}`).exists()).to.be.true;
});

it("wraps text when wrapText is true", () => {
const elem = mount(<EditableCell wrapText={true} />);

expect(elem.find(`.${Classes.TABLE_NO_WRAP_TEXT}`).children().length).to.equal(0);
expect(elem.find(`.${Classes.TABLE_NO_WRAP_TEXT}`).exists()).to.be.false;
});
});

0 comments on commit ad0b74f

Please sign in to comment.