react-native-cross-components
Version:
Beautiful React-Native components using RN Paper by Callstack
1 lines • 1.89 kB
Source Map (JSON)
{"file":"/Users/thomas/Source/react-native-core/source/index.test.tsx","mappings":";;;;;AAgBA,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAC5B,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAjB7B,kDAA0B;AAC1B,8EAA+C;AAC/C,mCAAoC;AAEpC,SAAS,KAAK,CAAC,QAAgB,EAAE,KAAW,EAAE,IAAa,EAAE,OAAoB;IAC/E,OAAO,6BAAY,CAAC,MAAM,CACxB,8BAAC,mBAAW,IACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,EAAE,EAAE,EAC7B,IAAI,EAAE,IAAI,IAAI,EAAE,GAChB,CACH,CAAC;AACJ,CAAC;AAKD;;;;;;KAMK;AACL,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC/C,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;YACjC,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","names":[],"sources":["/Users/thomas/Source/react-native-core/source/index.test.tsx"],"sourcesContent":["import React from 'react';\nimport TestRenderer from 'react-test-renderer';\nimport {CrossButton} from './index';\n\nfunction setup(iconName: string, title?: any, size?: number, onPress?: () => void) {\n return TestRenderer.create(\n <CrossButton\n iconName={iconName}\n title={title}\n color=\"blue\"\n onPress={onPress || jest.fn()}\n size={size || 64}\n />\n );\n}\n\njest.unmock('react-native');\njest.unmock('./CrossButton');\n\n/**\n * Test component rendering. Properties of children might be tested by importing their type:\n *```\n const btn = wrapper.root.findByType(Button); // or findByProps({ mode: 'text' });\n expect(btn.props.title).toBe('child');\n ```\n */\ndescribe('components', () => {\n describe('Index should have <CrossButton />', () => {\n it('Component should render', () => {\n const wrapper = setup('home', 'home');\n expect(wrapper.toJSON()).toMatchSnapshot();\n });\n\n });\n});\n"],"version":3}