feat: ui overhaul (#676)
This commit is contained in:
committed by
GitHub
parent
5c86462859
commit
66b81e9228
18
packages/core/test/data/entry.mock.ts
Normal file
18
packages/core/test/data/entry.mock.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
import type { Entry } from '@staticcms/core';
|
||||
|
||||
export const createMockEntry = (
|
||||
options: Omit<Partial<Entry>, 'data'> & Pick<Entry, 'data'>,
|
||||
): Entry => ({
|
||||
collection: 'mock_collection',
|
||||
slug: 'slug-value',
|
||||
path: '/path/to/entry',
|
||||
partial: false,
|
||||
raw: JSON.stringify(options.data),
|
||||
label: 'Entry',
|
||||
isModification: false,
|
||||
mediaFiles: [],
|
||||
author: 'Some Person',
|
||||
updatedOn: '20230-02-09T00:00:00.000Z',
|
||||
...options,
|
||||
});
|
Reference in New Issue
Block a user