refactor: standardize variable naming and improve legend width calculations

Co-authored-by: pranavm2109 <mishrap@dickinson.edu>
This commit is contained in:
Shahir Ahmed
2025-02-13 01:46:27 -05:00
parent d618b8398e
commit 5f7c68def7
2 changed files with 11 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ section Checkout from website
const style = svg.attr('style');
expect(style).to.match(/^max-width: [\d.]+px;$/);
const maxWidthValue = parseFloat(style.match(/[\d.]+/g).join(''));
//expect(maxWidthValue).to.eq(700);
expect(maxWidthValue).to.eq(700);
});
});