import React from 'react';
import { render } from 'react-testing-library';
import Wrapper from '../Wrapper';
describe('', () => {
it('should render an
tag', () => {
const { container } = render();
expect(container.firstElementChild.tagName).toEqual('DIV');
});
it('should have a class attribute', () => {
const { container } = render();
const element = container.firstElementChild;
expect(element.hasAttribute('class')).toBe(true);
});
it('should adopt a valid attribute', () => {
const id = 'test';
const { container } = render();
const element = container.firstElementChild;
expect(element.id).toEqual(id);
});
it('should not adopt an invalid attribute', () => {
const { container } = render();
const element = container.firstElementChild;
expect(element.hasAttribute('attribute')).toBe(false);
});
});