Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Aug 27, 2024
1 parent 463c60a commit ce720ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/publication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ test('Front matter of a collection page', () => {
expect(getFrontMatter(PAGE_TEST, settings, 'page-1', 'collectionTest')).toEqual(dedent`
---
pagination:
addAllPagesToCollections: true
data: datasourceIdTest.continents
size: 1
collection: "collectionTest"
Expand All @@ -81,6 +82,7 @@ test('Front matter of a collection page backward compatibility', () => {
expect(getFrontMatter(PAGE_TEST, settings, 'page-1', 'collectionTest')).toEqual(dedent`
---
pagination:
addAllPagesToCollections: true
data: datasourceIdTest.continents
size: 1
collection: "collectionTest"
Expand All @@ -98,6 +100,7 @@ test('Permalink', () => {
expect(getFrontMatter(PAGE_TEST, settings, 'page-1', '')).toEqual(dedent`
---
pagination:
addAllPagesToCollections: true
data: datasourceIdTest.continents
size: 1
permalink: "{% assign var_ccidtest_1 = datasourceIdTest.continents %}{{ var_ccidtest_1 }}"
Expand All @@ -115,6 +118,7 @@ test('Permalink with fixed string expression', () => {
expect(getFrontMatter(PAGE_TEST, settings, 'page-1', '')).toEqual(dedent`
---
pagination:
addAllPagesToCollections: true
data: datasourceIdTest.continents
size: 1
permalink: "/test/"
Expand All @@ -131,6 +135,7 @@ test('With languages', () => {
expect(getFrontMatter(PAGE_TEST, settings, 'page-1', '', 'fr')).toEqual(dedent`
---
pagination:
addAllPagesToCollections: true
data: directus.posts
size: 1
lang: "fr"
Expand Down

0 comments on commit ce720ce

Please sign in to comment.