@@ -65,18 +65,6 @@ describe('React', () => {
6565 } )
6666
6767 describe ( 'Options' , ( ) => {
68- describe ( '#useFragment' , ( ) => {
69- it ( 'should return a Fragment' , ( ) => {
70- const div = document . createElement ( 'div' )
71- const link = document . createElement ( 'a' )
72- link . textContent = 'Link'
73- div . appendChild ( link )
74-
75- const wrapper = shallowWrapper ( render ( div . childNodes , { useFragment : true , useAsKey : [ 'key' ] } ) )
76- expect ( wrapper . find ( 'a' ) . text ( ) ) . toEqual ( 'Link' )
77- } )
78- } )
79-
8068 describe ( '#useAsKey' , ( ) => {
8169 it ( 'should use key as a default key' , ( ) => {
8270 const div = document . createElement ( 'div' )
@@ -85,7 +73,7 @@ describe('React', () => {
8573 link . setAttribute ( 'key' , 'link' )
8674 div . appendChild ( link )
8775
88- const wrapper = shallowWrapper ( render ( div . childNodes , { useFragment : true , useAsKey : [ 'key' ] } ) )
76+ const wrapper = shallowWrapper ( render ( div . childNodes , { useAsKey : [ 'key' ] } ) )
8977 expect ( wrapper . find ( 'a' ) . key ( ) ) . toEqual ( 'link' )
9078 } )
9179
@@ -96,7 +84,7 @@ describe('React', () => {
9684 link . setAttribute ( 'class' , 'fallback key' )
9785 div . appendChild ( link )
9886
99- const wrapper = shallowWrapper ( render ( div . childNodes , { useFragment : true , useAsKey : [ 'key' , 'id' , 'class' ] } ) )
87+ const wrapper = shallowWrapper ( render ( div . childNodes , { useAsKey : [ 'key' , 'id' , 'class' ] } ) )
10088 expect ( wrapper . find ( 'a' ) . key ( ) ) . toEqual ( 'fallback key' )
10189 } )
10290
@@ -106,7 +94,7 @@ describe('React', () => {
10694 link . textContent = 'Link'
10795 div . appendChild ( link )
10896
109- const wrapper = shallowWrapper ( render ( div . childNodes , { useFragment : true , useAsKey : [ 'key' , 'id' ] } ) )
97+ const wrapper = shallowWrapper ( render ( div . childNodes , { useAsKey : [ 'key' , 'id' ] } ) )
11098 expect ( wrapper . find ( 'a' ) . key ( ) ) . toEqual ( null )
11199 } )
112100 } )
0 commit comments