DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to test if an element has a class in testing library
expect(getByTestId('element_data_test').classList.contains('className')).toBe(true);
PREVIOUS
NEXT
Tagged:
#test
#element
#class
#testing
#library
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit