/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @emails oncall+react_native
*/
'use strict';
import * as React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import Text from '../../../Text/Text';
import TouchableNativeFeedback from '../TouchableNativeFeedback';
import View from '../../View/View';
const render = require('../../../../jest/renderer');
describe('TouchableWithoutFeedback', () => {
it('renders correctly', () => {
const instance = render.create(
Touchable
,
);
expect(instance.toJSON()).toMatchSnapshot();
});
it('has displayName', () => {
expect(TouchableNativeFeedback.displayName).toEqual(
'TouchableNativeFeedback',
);
});
});
describe('', () => {
it('should render as expected', () => {
const instance = ReactTestRenderer.create(
,
);
expect(instance.toJSON()).toMatchSnapshot();
});
});
describe('', () => {
it('should be disabled when disabled is true', () => {
expect(
ReactTestRenderer.create(
,
),
).toMatchSnapshot();
});
});
describe('', () => {
it('should be disabled when disabled is true and accessibilityState is empty', () => {
expect(
ReactTestRenderer.create(
,
),
).toMatchSnapshot();
});
});
describe('', () => {
it('should keep accessibilityState when disabled is true', () => {
expect(
ReactTestRenderer.create(
,
),
).toMatchSnapshot();
});
});
describe('', () => {
it('should overwrite accessibilityState with value of disabled prop', () => {
expect(
ReactTestRenderer.create(
,
),
).toMatchSnapshot();
});
});
describe('', () => {
it('should overwrite accessibilityState with value of disabled prop', () => {
expect(
ReactTestRenderer.create(
,
),
).toMatchSnapshot();
});
});