markuswind/react-native-select-input-ios

View on GitHub
src/components/KeyboardButton/__tests__/KeyboardButton.spec.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'
import renderer from 'react-test-renderer'

import KeyboardButton from '../KeyboardButton'

const props = {
  onPress: jest.fn(),
  text: 'buttonText',
  textAlign: 'left',
  textStyle: {
    color: '#ABCDEF',
    fontSize: 13
  }
}

describe('KeyboardButton', () => {
  test('renders correctly with given props', () => {
    const keyboardButton = renderer.create(<KeyboardButton {...props} />)
    expect(keyboardButton).toMatchSnapshot()
  })
})