Skip to content
Snippets Groups Projects

Add guest info page

Merged Andreas Ellewsen requested to merge GREG-74-profilepage into master
9 files
+ 319
258
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -2,13 +2,12 @@ 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' />)
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