@@ -31,8 +31,8 @@ describe('Element Wrapping', () => {
3131
3232 let newParent = single [ '0' ] . parentNode ;
3333
34- expect ( firstParent . matches ( '#wrap' ) ) . to . be . true ;
35- expect ( newParent . matches ( '#wrap' ) ) . to . be . false ;
34+ expect ( firstParent . matches ( '#wrap' ) ) . to . be . equal ( true ) ;
35+ expect ( newParent . matches ( '#wrap' ) ) . to . be . equal ( false ) ;
3636 } ) ;
3737
3838 it ( 'should wrap and replace child if the element is the only child' , ( ) => {
@@ -42,14 +42,13 @@ describe('Element Wrapping', () => {
4242
4343 singleInner . wrap ( '<div />' ) ;
4444
45- let newParent = singleInner [ '0' ] . parentNode ;
4645 let newLength = parent . childNodes . length ;
4746 let newChild = parent . firstChild . classList . contains ( 'wrap-single-inner' ) ;
4847
4948 expect ( length ) . to . be . equal ( 1 ) ;
50- expect ( child ) . to . be . true ;
49+ expect ( child ) . to . be . equal ( true ) ;
5150 expect ( newLength ) . to . be . equal ( 1 ) ;
52- expect ( newChild ) . to . be . false ;
51+ expect ( newChild ) . to . be . equal ( false ) ;
5352 } ) ;
5453
5554 it ( 'should wrap element with "div" has a class value "new-wrap" and id value "wrap-id"' , ( ) => {
@@ -59,9 +58,9 @@ describe('Element Wrapping', () => {
5958
6059 let newParent = singleAttr [ '0' ] . parentNode ;
6160
62- expect ( firstParent . matches ( '#wrap' ) ) . to . be . true ;
63- expect ( newParent . matches ( '#wrap-id' ) ) . to . be . true ;
64- expect ( newParent . classList . contains ( 'new-wrap' ) ) . to . be . true ;
61+ expect ( firstParent . matches ( '#wrap' ) ) . to . be . equal ( true ) ;
62+ expect ( newParent . matches ( '#wrap-id' ) ) . to . be . equal ( true ) ;
63+ expect ( newParent . classList . contains ( 'new-wrap' ) ) . to . be . equal ( true ) ;
6564 } ) ;
6665 } ) ;
6766
0 commit comments