import React from 'react';
import { View, StyleSheet } from 'react-native';
import { render } from '@testing-library/react-native';
import Card from '../Card';
describe('without custom style', () => {
it('renders correctly', () => {
const { toJSON } = render(
,
);
expect(toJSON()).toMatchSnapshot();
});
});
describe('with custom style', () => {
it('renders correctly with customed style', () => {
const styles = StyleSheet.create({ custom: { backgroundColor: 'red' } });
const { toJSON } = render(
,
);
expect(toJSON()).toMatchSnapshot();
});
});