Skip to content
Snippets Groups Projects
Commit c98787f2 authored by Tore.Brede's avatar Tore.Brede
Browse files

Adding small test to avoid pipeline failure because of no tests

parent 21404ef9
No related branches found
No related tags found
1 merge request!54Adjust pipeline setup
Pipeline #93526 passed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment