import renderer from 'react-test-renderer';
import Link from './Link';
it('default', () =>
expect(renderer.create(Link).toJSON()).toMatchSnapshot());
it('regular', () =>
expect(renderer.create(Link).toJSON()).toMatchSnapshot());
it('inline and auto underline', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('inline and overriden underline="none"', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('inline and overriden underline="hover"', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('target null', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('download string', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('download true', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('target self', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('target blank', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('external link with nofollow', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('with onClick', () =>
expect(
renderer
.create(
{}}>
Link
,
)
.toJSON(),
).toMatchSnapshot());
it('with custom rounding, and tapStyle', () =>
expect(
renderer
.create(
Link
,
)
.toJSON(),
).toMatchSnapshot());