"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var ReactTestUtils = require("react-dom/test-utils"); var BaseComponent_1 = require("./BaseComponent"); describe('BaseComponent', function () { it('can resolve refs', function () { // eslint-disable-next-line deprecation/deprecation var Foo = /** @class */ (function (_super) { tslib_1.__extends(Foo, _super); function Foo() { return _super !== null && _super.apply(this, arguments) || this; } Foo.prototype.render = function () { // eslint-disable-next-line deprecation/deprecation return React.createElement("div", { ref: this._resolveRef('root') }); }; return Foo; }(BaseComponent_1.BaseComponent)); var component = ReactTestUtils.renderIntoDocument(React.createElement(Foo, null)); expect(component.root).toBeTruthy(); }); }); //# sourceMappingURL=BaseComponent.test.js.map