fix: use future publish_time for shared state test

PUBLISHED_RECORD used a fixed past date that was before Date.now(),
causing lastModified > publishedAt and dialog showing 'stale' instead
of 'shared'. Use Date.now() + 60s to ensure publishedAt > lastModified.
This commit is contained in:
bymyself
2026-03-30 18:54:51 -07:00
parent d9f6c9dfd6
commit 1c50008e72

View File

@@ -16,7 +16,7 @@ const PUBLISHED_RECORD: PublishRecord = {
workflow_id: 'wf-1',
share_id: 'share-abc',
listed: false,
publish_time: '2026-01-15T00:00:00Z'
publish_time: new Date(Date.now() + 60_000).toISOString()
}
const PRIVATE_ASSET: AssetInfo = {