2016-06-30 04:52:00 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-11-02 13:14:11 +00:00
|
|
|
*
|
2018-05-11 02:06:46 +00:00
|
|
|
* @format
|
2017-11-02 13:14:11 +00:00
|
|
|
* @emails oncall+react_native
|
2016-06-30 04:52:00 +00:00
|
|
|
*/
|
2018-05-11 02:06:46 +00:00
|
|
|
|
2016-11-21 01:49:21 +00:00
|
|
|
'use strict';
|
2016-06-30 04:52:00 +00:00
|
|
|
|
|
|
|
const React = require('React');
|
2016-11-04 12:40:26 +00:00
|
|
|
const ReactTestRenderer = require('react-test-renderer');
|
2016-06-30 04:52:00 +00:00
|
|
|
const Text = require('Text');
|
|
|
|
const TouchableHighlight = require('TouchableHighlight');
|
|
|
|
|
|
|
|
describe('TouchableHighlight', () => {
|
|
|
|
it('renders correctly', () => {
|
|
|
|
const instance = ReactTestRenderer.create(
|
|
|
|
<TouchableHighlight style={{}}>
|
|
|
|
<Text>Touchable</Text>
|
2018-05-11 02:06:46 +00:00
|
|
|
</TouchableHighlight>,
|
2016-06-30 04:52:00 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
expect(instance.toJSON()).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|