Skip to content
Snippets Groups Projects

Adjust pipeline setup

Merged Andreas Ellewsen requested to merge pipeline-frontend into master
All threads resolved!
1 file
+ 14
0
Compare changes
  • Side-by-side
  • Inline
+ 14
0
import React from 'react'
import { render, waitFor, screen } from '@testing-library/react'
import Link from './index'
describe('Tests for Link component', () => {
test('External link prefixes route link with //', async () => {
render(<Link external to='example.org' />)
await waitFor(() => screen.getByRole('link'))
expect(screen.getByRole('link')).toHaveAttribute('href', '//example.org')
})
})
\ No newline at end of file
Loading