remove alt from js/html/tests

This commit is contained in:
Kara Hoagland
2022-11-21 11:58:26 -08:00
parent 1798835807
commit 1db54e9f7a
8 changed files with 8 additions and 35 deletions

View File

@@ -18,12 +18,12 @@ function init() {
* @param {Array<Object>} reviews An array of reviews
*/
function addReviewsToDocument(reviews) {
let box = document.getElementById("review-container");
let reviewBox = document.getElementById("review-container");
reviews.forEach(review => {
let newReview = document.createElement("review-card");
newReview.data = review;
//TODO: want to append it to whatever the box is in layout
box.append(newReview);
reviewBox.append(newReview);
});
}