@@ -18,6 +18,7 @@ const rawHomePage: RawPageMetadata = {
1818 _id : 'home' ,
1919 _type : 'homePage' ,
2020 _updatedAt : '2023-01-01T00:00:00Z' ,
21+ title : 'Home Page' ,
2122 language : 'en' ,
2223} ;
2324
@@ -27,6 +28,7 @@ const rawParentContentPage: RawPageMetadata = {
2728 _updatedAt : '2023-01-01T00:00:00Z' ,
2829 parent : { _ref : 'home' , _type : 'reference' } ,
2930 slug : { current : 'parent' } ,
31+ title : 'Content Page' ,
3032 language : 'en' ,
3133} ;
3234
@@ -36,6 +38,7 @@ const rawChildContentPage: RawPageMetadata = {
3638 _updatedAt : '2023-01-01T00:00:00Z' ,
3739 parent : { _ref : 'parent' , _type : 'reference' } ,
3840 slug : { current : 'child' } ,
41+ title : 'Content Page child' ,
3942 language : 'en' ,
4043} ;
4144
@@ -74,18 +77,21 @@ describe('Page tree helpers', () => {
7477 {
7578 _id : rawHomePage . _id ,
7679 _updatedAt : rawHomePage . _updatedAt ,
80+ title : 'Home Page' ,
7781 type : rawHomePage . _type ,
7882 path : '/en' ,
7983 } ,
8084 {
8185 _id : rawParentContentPage . _id ,
8286 _updatedAt : rawParentContentPage . _updatedAt ,
87+ title : 'Content Page' ,
8388 type : rawParentContentPage . _type ,
8489 path : '/en/parent' ,
8590 } ,
8691 {
8792 _id : rawChildContentPage . _id ,
8893 _updatedAt : rawChildContentPage . _updatedAt ,
94+ title : 'Content Page child' ,
8995 type : rawChildContentPage . _type ,
9096 path : '/en/parent/child' ,
9197 } ,
@@ -126,21 +132,27 @@ describe('Page tree helpers', () => {
126132 _id : 'home' ,
127133 _type : 'homePage' ,
128134 _updatedAt : '2023-01-01T00:00:00Z' ,
135+ title : 'Home Page' ,
129136 language : 'en' ,
130137 } ,
131138 {
132139 _id : 'drafts.home' ,
133140 _type : 'homePage' ,
134- _updatedAt : '2023-01-01T00:00:00Z' ,
141+ _updatedAt : '2024-01-01T00:00:00Z' ,
142+ title : 'Home Page in draft' ,
135143 language : 'en' ,
136144 } ,
137145 ] ) ,
138146 ) . toStrictEqual ( [
139147 {
140- ...rawHomePage ,
148+ _id : 'home' ,
149+ _type : 'homePage' ,
150+ _updatedAt : '2024-01-01T00:00:00Z' ,
151+ title : 'Home Page in draft' ,
141152 isDraft : true ,
142153 isPublished : true ,
143154 path : '/en' ,
155+ language : 'en' ,
144156 children : [ ] ,
145157 } ,
146158 ] ) ;
0 commit comments