aboutsummaryrefslogtreecommitdiff
path: root/js/mock.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mock.js')
-rw-r--r--js/mock.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/mock.js b/js/mock.js
index a189a11..92bb4c6 100644
--- a/js/mock.js
+++ b/js/mock.js
@@ -1,5 +1,6 @@
import { Graduation, GraduationChange } from "./graduation-common.js";
import { Student } from "./student-common.js";
+import { buildGroups } from "./group.js";
const students = [
new Student(1, 'foo bar', 'test'),
@@ -7,6 +8,9 @@ const students = [
new Student(3, 'b b b', '5a')
];
+// Build the groups from our mock students
+buildGroups(students);
+
function fetchStudentsMock() {
return new Promise((resolve) => { resolve(students); });
}