@@ -168,34 +168,4 @@ describe( "test the deconstructAnchor and reconstructAnchor helper", () => {
168168 const reconstructedAnchor = reConstructAnchor ( deconstructedAnchor . openTag , deconstructedAnchor . content ) ;
169169 expect ( reconstructedAnchor ) . toEqual ( testAnchor ) ;
170170 } ) ;
171-
172- it ( "correctly deconstructs and reconstructs an anchor if does not contain content" , ( ) => {
173- // Unrealistic Scenario. But protects against the bug that is solved in this PR:
174- // https://github.com/Yoast/wordpress-seo/pull/19373
175- const testAnchor = "<a href=\"https://yoast.com\"></a>" ;
176- const deconstructedAnchor = deConstructAnchor ( testAnchor ) ;
177-
178- expect ( deconstructedAnchor ) . toEqual ( {
179- openTag : "<a href=\"https://yoast.com\">" ,
180- content : "" ,
181- } ) ;
182-
183- const reconstructedAnchor = reConstructAnchor ( deconstructedAnchor . openTag , deconstructedAnchor . content ) ;
184- expect ( reconstructedAnchor ) . toEqual ( testAnchor ) ;
185- } ) ;
186-
187- it ( "correctly deconstructs and reconstructs an anchor if content contains a newline" , ( ) => {
188- // Unrealistic Scenario. But protects against the bug that is solved in this PR:
189- // https://github.com/Yoast/wordpress-seo/pull/19373
190- const testAnchor = "<a href=\"https://yoast.com\">This is a line.\nAnd this is a line.</a>" ;
191- const deconstructedAnchor = deConstructAnchor ( testAnchor ) ;
192-
193- expect ( deconstructedAnchor ) . toEqual ( {
194- openTag : "<a href=\"https://yoast.com\">" ,
195- content : "This is a line.\nAnd this is a line." ,
196- } ) ;
197-
198- const reconstructedAnchor = reConstructAnchor ( deconstructedAnchor . openTag , deconstructedAnchor . content ) ;
199- expect ( reconstructedAnchor ) . toEqual ( testAnchor ) ;
200- } ) ;
201171} ) ;
0 commit comments