fixing console errors

This commit is contained in:
Beverly Nguyen
2024-08-07 15:54:54 -07:00
parent 92026a83aa
commit 2bb398a962
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
var svg = d3.select("#totalMessageChart");
var width = chartContainer.clientWidth;
var height = 64;
console.log('update')
svg.attr("width", width).attr("height", height);

View File

@@ -173,7 +173,7 @@ test('SVG bars are created and animated correctly', done => {
done();
}, 1500); // Duration of the animation + buffer time
});
console.log('update')
test('Creates chart on DOMContentLoaded', () => {
const createTotalMessagesChartSpy = jest.spyOn(window, 'createTotalMessagesChart');