File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
test/browser/fixtures/expect-dom Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ test('.toBeInTheDocument', () => {
4242 const expectToBe = / e x p e c t .* \. t o B e I n T h e D o c u m e n t /
4343 const expectNotToBe = / e x p e c t .* n o t \. t o B e I n T h e D o c u m e n t /
4444 const userInputNode = / a n H T M L E l e m e n t o r a n S V G E l e m e n t /
45+ const notFound = / e l e m e n t c o u l d n o t b e f o u n d i n t h e d o c u m e n t /
4546 expect ( ( ) => expect ( htmlElement ) . not . toBeInTheDocument ( ) ) . toThrowError (
4647 expectNotToBe ,
4748 )
@@ -55,12 +56,10 @@ test('.toBeInTheDocument', () => {
5556 userInputNode ,
5657 )
5758 expect ( ( ) => expect ( nullElement ) . toBeInTheDocument ( ) ) . toThrowError (
58- userInputNode ,
59+ notFound ,
5960 )
6061 expect ( ( ) => expect ( undefinedElement ) . toBeInTheDocument ( ) ) . toThrowError (
61- userInputNode ,
62- )
63- expect ( ( ) => expect ( undefinedElement ) . not . toBeInTheDocument ( ) ) . toThrowError (
64- userInputNode ,
62+ notFound ,
6563 )
64+ expect ( ( ) => expect ( undefinedElement ) . not . toBeInTheDocument ( ) ) . not . toThrowError ( )
6665} )
You can’t perform that action at this time.
0 commit comments