Skip to content

Commit

Permalink
Test sync support for template ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
poltak committed Mar 5, 2024
1 parent 5137a48 commit 4497e86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import {
} from '@worldbrain/memex-common/lib/personal-cloud/storage/types'
import { buildMaterializedPath } from '@worldbrain/memex-common/lib/content-sharing/utils'
import { ROOT_NODE_PARENT_ID } from '@worldbrain/memex-common/lib/content-sharing/tree-utils'
import {
DEFAULT_KEY,
DEFAULT_SPACE_BETWEEN,
} from '@worldbrain/memex-common/lib/utils/item-ordering'

export async function insertTestPages(storageManager: StorageManager) {
await storageManager
Expand Down Expand Up @@ -537,13 +541,15 @@ export const LOCAL_TEST_DATA_V24 = {
title: 'Roam Markdown',
code: '[[{{{PageTitle}}}]]',
outputFormat: 'markdown',
order: DEFAULT_KEY,
},
second: {
id: 2,
isFavourite: true,
title: 'Other Markdown',
code: '[[{{{PageUrl}}}]]',
outputFormat: 'markdown',
order: DEFAULT_KEY + DEFAULT_SPACE_BETWEEN,
},
},
settings: {
Expand Down Expand Up @@ -1441,6 +1447,7 @@ export const REMOTE_TEST_DATA_V24 = {
title: LOCAL_TEST_DATA_V24.templates.first.title,
localId: LOCAL_TEST_DATA_V24.templates.first.id,
code: LOCAL_TEST_DATA_V24.templates.first.code,
order: LOCAL_TEST_DATA_V24.templates.first.order,
createdByDevice: REMOTE_DEVICES_V24.first.id,
outputFormat: 'markdown',
user: TEST_USER.id,
Expand All @@ -1453,6 +1460,7 @@ export const REMOTE_TEST_DATA_V24 = {
title: LOCAL_TEST_DATA_V24.templates.second.title,
localId: LOCAL_TEST_DATA_V24.templates.second.id,
code: LOCAL_TEST_DATA_V24.templates.second.code,
order: LOCAL_TEST_DATA_V24.templates.second.order,
createdByDevice: REMOTE_DEVICES_V24.first.id,
outputFormat: 'markdown',
user: TEST_USER.id,
Expand Down

0 comments on commit 4497e86

Please sign in to comment.