Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return the root component instance from renderer', function() {
const renderer = createRenderer();
renderer.render();
const instance = getMountedInstance(renderer);
// Since this is a component instance and *not* shallow render output we need
// to use the existing React TestUtils.
expect(isCompositeComponentWithType(instance, OtherComponent)).toBe(true);
});
it('is of the right type', () => {
expect(TestUtils.isCompositeComponentWithType(component, Visualization)).toBe(true);
});
it('has one chart child component', () => {
it('is of the right type', function() {
var modal = TestUtils.renderIntoDocument();
assert.isTrue(TestUtils.isCompositeComponentWithType(modal, Modal));
});
it('is of the right type', function() {
assert.isTrue(TestUtils.isCompositeComponentWithType(this.component, Chart));
});
it('has a get started message when there is no query yet', function(){
it('is of the right type', function() {
assert.isTrue(TestUtils.isCompositeComponentWithType(this.component, ReactSelect));
});
it('has one input', function(){
it('is of the right type', function() {
notice = {};
component = TestUtils.renderIntoDocument();
assert.isTrue(TestUtils.isCompositeComponentWithType(component, Notice));
});
});
it('is of the right type', function() {
assert.isTrue(TestUtils.isCompositeComponentWithType(this.component, Datepicker));
});
it('has one input', function(){
it('is of the right type', function() {
assert.isTrue(TestUtils.isCompositeComponentWithType(this.component, FilterValueFields));
});
it('is of the right type', function() {
assert.isTrue(TestUtils.isCompositeComponentWithType(this.component, EventBrowser));
});