UNPKG

@datalayer/core

Version:
26 lines (25 loc) 781 B
/* * Copyright (c) 2023-2025 Datalayer, Inc. * Distributed under the terms of the Modified BSD License. */ import { newUlid } from "../../utils"; export const newSchoolMock = (name) => { const school = { id: newUlid(), handle: newUlid(), type: "school", name: name, description: name + " description.", public: false, members: [], students: [], courses: [], creationDate: new Date(), setMembers: (members) => { }, }; return school; }; export const SCHOOL_1_MOCK = newSchoolMock("School 1"); export const SCHOOL_2_MOCK = newSchoolMock("School 2"); export const SCHOOL_3_MOCK = newSchoolMock("School 3"); export const SCHOOLS_MOCK = [SCHOOL_1_MOCK, SCHOOL_2_MOCK, SCHOOL_3_MOCK];