diff --git a/plugins/woocommerce-admin/client/components/chart/test/legend.js b/plugins/woocommerce-admin/client/components/chart/test/legend.js index e072fd0dfc6..2604937ffe5 100644 --- a/plugins/woocommerce-admin/client/components/chart/test/legend.js +++ b/plugins/woocommerce-admin/client/components/chart/test/legend.js @@ -26,18 +26,18 @@ const data = [ describe( 'Legend', () => { test( 'should not disable any button if more than one is active', () => { - const topSellingProducts = mount( ); + const legend = mount( ); - expect( topSellingProducts.find( 'button' ).get( 0 ).props.disabled ).toBeFalsy(); - expect( topSellingProducts.find( 'button' ).get( 1 ).props.disabled ).toBeFalsy(); + expect( legend.find( 'button' ).get( 0 ).props.disabled ).toBeFalsy(); + expect( legend.find( 'button' ).get( 1 ).props.disabled ).toBeFalsy(); } ); test( 'should disable the last active button', () => { data[ 1 ].visible = false; - const topSellingProducts = mount( ); + const legend = mount( ); - expect( topSellingProducts.find( 'button' ).get( 0 ).props.disabled ).toBeTruthy(); - expect( topSellingProducts.find( 'button' ).get( 1 ).props.disabled ).toBeFalsy(); + expect( legend.find( 'button' ).get( 0 ).props.disabled ).toBeTruthy(); + expect( legend.find( 'button' ).get( 1 ).props.disabled ).toBeFalsy(); } ); } );