aboutsummaryrefslogtreecommitdiff
path: root/src/utils-mock.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils-mock.js')
-rw-r--r--src/utils-mock.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils-mock.js b/src/utils-mock.js
index 5457700..563f685 100644
--- a/src/utils-mock.js
+++ b/src/utils-mock.js
@@ -59,3 +59,13 @@ export function getCourseParticipantsUrl() {
console.error("Try to get mocked participations URL");
return "";
}
+
+export class CourseLocalStorage {
+ static getItem(key) {
+ return localStorage.getItem(`${key}-mock`);
+ }
+
+ static setItem(key, val) {
+ return localStorage.setItem(`${key}-mock`, val);
+ }
+}