Skip to content

Commit c53ae3a

Browse files
committed
chore: update tests
1 parent 5e1e23b commit c53ae3a

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

test/integration/getEntry.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ test('Gets entry with attached metadata and field called "metadata" on preview',
357357
test('can make calls to TimelinePreview API on preview', async () => {
358358
const timelinePreviewClient = contentful.createClient({
359359
...previewParamsWithCSM,
360-
alphaFeatures: {
361-
timelinePreview: { release: { lte: 'black-friday' } },
362-
},
360+
361+
timelinePreview: { release: { lte: 'black-friday' } },
363362
})
364363

365364
const entryWithMetadataFieldAndMetadata = '1NnAC4eF9IRMpHtFB1NleW'

test/unit/timeline-preview.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ describe('Timeline Preview path and query', () => {
99
get: mockGet,
1010
httpClientParams: {
1111
host: 'preview.contentful.com',
12-
alphaFeatures: {
13-
timelinePreview: {
14-
release: { lte: 'black-friday' },
15-
timestamp: { lte: '2023-11-30T23:59:59Z' },
16-
},
12+
13+
timelinePreview: {
14+
release: { lte: 'black-friday' },
15+
timestamp: { lte: '2023-11-30T23:59:59Z' },
1716
},
1817
},
1918
} as unknown as AxiosInstance

0 commit comments

Comments
 (0)