var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _react=_interopRequireDefault(require("react"));
var _enzyme=require("enzyme");
var _=_interopRequireDefault(require(".."));var _jsxFileName="/Users/paveljacko/DEV/BIZ-RENATIVE/Code/renative/packages/rnv/src/engine-core/__tests__/index.spec.js";

describe('Expandable Text',function(){
it('should render Input',function(){
var mounted=(0,_enzyme.mount)(
_react.default.createElement(_.default,{__source:{fileName:_jsxFileName,lineNumber:8,columnNumber:13}}));

expect(mounted.find(_.default).exists()).toBe(true);
});
it('should call renderVisibilitySwitch with secure = true when secureTextEntry is passed',function(){
var spy=jest.fn();
var mounted=(0,_enzyme.mount)(
_react.default.createElement(_.default,{secureTextEntry:true,renderVisibilitySwitch:spy,__source:{fileName:_jsxFileName,lineNumber:15,columnNumber:13}}));

expect(spy).toBeCalledWith({secure:true});
mounted.unmount();
});
it('should call renderVisibilitySwitch with secure = false when secureTextEntry is not set',function(){
var spy=jest.fn();
var mounted=(0,_enzyme.mount)(
_react.default.createElement(_.default,{renderVisibilitySwitch:spy,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:13}}));

expect(spy).toBeCalledWith({secure:false});
mounted.unmount();
});
});
//# sourceMappingURL=index.spec.js.map