Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
{}}
onEndChange={() => {}}
/>
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("date-range-picker");
});
/* TODO: remove comments after the bug will be resolved https://github.com/chaijs/chai/pull/1071 */
export function getDOMNode(children) {
if (ReactTestUtils.isCompositeComponent(children)) {
return findDOMNode(children);
}
return findDOMNode(getInstance(children));
}
it("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("date-range-input");
});
it("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("home-view");
});
it("adds the correct class", () => {
const essence = EssenceFixtures.wikiTotals();
const sortOn = new SortOn(essence.dataCube.getDimension("articleName"));
const renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("pinboard-measure-tile");
});
it("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("totals");
});
});
it("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
{}}
/>
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(findDOMNode(renderedComponent).className, "should contain class").to.contain("filter-options-dropdown");
});
var renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("string-filter-menu");
});
it.skip("adds the correct class", () => {
var renderedComponent = renderIntoDocument(
);
expect(TestUtils.isCompositeComponent(renderedComponent), "should be composite").to.equal(true);
expect(ReactDOM.findDOMNode(renderedComponent).className, "should contain class").to.contain("link-view");
});
});