import React from 'react';
import { render } from '@testing-library/react-native';
import { OrderCard } from '..';
const props = {
title: 'Coca Cola',
subtitle: `Orden de compra 89982`,
};
describe('Test OrderTag component', () => {
it('render with status new', () => {
const component = render(
);
expect(component).toBeDefined();
expect(component.toJSON()).toMatchSnapshot();
});
it('render with status inProcess', () => {
const component = render(
);
expect(component).toBeDefined();
expect(component.toJSON()).toMatchSnapshot();
});
it('render with status finalized', () => {
const component = render();
expect(component).toBeDefined();
expect(component.toJSON()).toMatchSnapshot();
});
it('render with footer', () => {
const component = render(
);
expect(component).toBeDefined();
expect(component.toJSON()).toMatchSnapshot();
});
it('render with right text', () => {
const component = render(
);
expect(component).toBeDefined();
expect(component.toJSON()).toMatchSnapshot();
});
});