Skip to content

Commit

Permalink
fix: export mock IDs for direct usage in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j authored and EmilK15 committed Jun 30, 2020
1 parent d7c3316 commit 4e0c451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/api-headless-cms/src/testing/createEnvironment.ts
@@ -1,6 +1,8 @@
export const environmentId = "e1e1e1e1e1e1e1e1e1e1e1e1";

export default ({ database }) =>
database.collection("CmsEnvironment").insert({
id: "e1e1e1e1e1e1e1e1e1e1e1e1",
id: environmentId,
name: "Initial Environment",
description: "This is the initial environment.",
createdFrom: null
Expand Down
@@ -1,6 +1,8 @@
export const environmentAliasId = "ea1ea1ea1ea1ea1ea1ea1ea1";

export default ({ database, environmentId }) =>
database.collection("CmsEnvironmentAlias").insert({
id: "ea1ea1ea1ea1ea1ea1ea1ea1",
id: environmentAliasId,
name: "Production",
slug: "production",
description: 'This is the "production" environment alias',
Expand Down

0 comments on commit 4e0c451

Please sign in to comment.