UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

29 lines (28 loc) 867 B
/* * Copyright (c) 2023-2025 Datalayer, Inc. * Distributed under the terms of the Modified BSD License. */ import { newUlid } from '../../utils'; const newOrganizationMock = (name) => { const organization = { id: newUlid(), handle: newUlid(), type: 'organization', name: name, description: name + ' description.', public: false, members: [], teams: [], creationDate: new Date(), setMembers: (members) => { }, }; return organization; }; export const ORGANISATION_1_MOCK = newOrganizationMock('Organization 1'); export const ORGANISATION_2_MOCK = newOrganizationMock('Organization 2'); export const ORGANISATION_3_MOCK = newOrganizationMock('Organization 3'); export const ORGANISATIONS_MOCK = [ ORGANISATION_1_MOCK, ORGANISATION_2_MOCK, ORGANISATION_3_MOCK, ];