From c33e71f02dab3204c04abfc31f34a4b9deff4f95 Mon Sep 17 00:00:00 2001 From: Kev Date: Tue, 1 Feb 2022 22:49:43 +0100 Subject: [PATCH] Add tests for the 'Favorite projects' section --- myApp.js | 3 +- test/favorite-projects.spec.js | 108 +++++++++++++++++++++++++++++++++ test/util/index.js | 28 +++++++-- 3 files changed, 132 insertions(+), 7 deletions(-) create mode 100644 test/favorite-projects.spec.js diff --git a/myApp.js b/myApp.js index 0c467f3..3f9bdd1 100644 --- a/myApp.js +++ b/myApp.js @@ -2177,7 +2177,8 @@ function displayUsersProjects() { let favoriteProjectsString = ''; let projects = store['favorite-projects']; if (projects && projects.length > 0) { - favoriteProjectsString += '