Created
December 22, 2020 22:22
-
-
Save mariocsantos/af60a7bb2f118aacd78b2e6a65219eda to your computer and use it in GitHub Desktop.
Favorite food list test using "not"
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 React from 'react'; | |
import { render, screen } from '@testing-library/react'; | |
import { FavoriteFoodList } from '../FavoriteFoodList'; | |
describe('FavoriteFoodList', () => { | |
it('should render my favorites food', () => { | |
render(<FavoriteFoodList />); | |
expect(screen.getAllByRole('listitem')).not.toHaveLength(3); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment