Skip to content

Commit

Permalink
toEqual -> toBe
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Sep 11, 2024
1 parent 9b5f0b6 commit 611dd12
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/block-editor/src/hooks/test/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe( 'hasBlockClassNameSupport', () => {
className: false,
},
};
expect( hasBlockClassNameSupport( block ) ).toEqual( false );
expect( hasBlockClassNameSupport( block ) ).toBe( false );
} );

it( 'should reflect the nested supports property if true', () => {
Expand All @@ -35,7 +35,7 @@ describe( 'hasBlockClassNameSupport', () => {
},
},
};
expect( hasBlockClassNameSupport( block ) ).toEqual( true );
expect( hasBlockClassNameSupport( block ) ).toBe( true );
} );

it( 'should reflect the nested supports property if false', () => {
Expand All @@ -47,7 +47,7 @@ describe( 'hasBlockClassNameSupport', () => {
},
},
};
expect( hasBlockClassNameSupport( block ) ).toEqual( false );
expect( hasBlockClassNameSupport( block ) ).toBe( false );
} );
} );

Expand All @@ -58,7 +58,7 @@ describe( 'hasVariationClassNameSupport', () => {
const block = {
name: blockName,
};
expect( hasVariationClassNameSupport( block ) ).toEqual( false );
expect( hasVariationClassNameSupport( block ) ).toBe( false );
} );

it( 'should return false if the block does not explicitly support variation class names', () => {
Expand All @@ -68,7 +68,7 @@ describe( 'hasVariationClassNameSupport', () => {
className: true,
},
};
expect( hasVariationClassNameSupport( block ) ).toEqual( false );
expect( hasVariationClassNameSupport( block ) ).toBe( false );
} );

it( 'should reflect the nested supports property if true', () => {
Expand All @@ -80,7 +80,7 @@ describe( 'hasVariationClassNameSupport', () => {
},
},
};
expect( hasVariationClassNameSupport( block ) ).toEqual( true );
expect( hasVariationClassNameSupport( block ) ).toBe( true );
} );

it( 'should reflect the nested supports property if false', () => {
Expand All @@ -92,6 +92,6 @@ describe( 'hasVariationClassNameSupport', () => {
},
},
};
expect( hasVariationClassNameSupport( block ) ).toEqual( false );
expect( hasVariationClassNameSupport( block ) ).toBe( false );
} );
} );

0 comments on commit 611dd12

Please sign in to comment.