Created
July 22, 2020 16:20
-
-
Save sonicoder86/314a539db91545f2bbb824efe03f809d to your computer and use it in GitHub Desktop.
Svelte Testing Crash Course - part 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { render } from '@testing-library/svelte'; | |
import Routing from './routing.svelte'; | |
describe('Routing', () => { | |
it('should render routing', () => { | |
const { getByTestId } = render(Routing); | |
const element = getByTestId('info'); | |
expect(element).toHaveTextContent('Click to modify'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment