Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobbraga committed Feb 8, 2024
1 parent a2758da commit c9c5898
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
25 changes: 8 additions & 17 deletions cypress/e2e/breadcrumb.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,26 @@ describe('Breadcrumb JSON-LD', () => {
{
'@type': 'ListItem',
position: 1,
item: {
'@id': 'https://example.com/books',
name: 'Books',
},
item: 'https://example.com/books',
name: 'Books',
},
{
'@type': 'ListItem',
position: 2,
item: {
'@id': 'https://example.com/books/authors',
name: 'Authors',
},
item: 'https://example.com/books/authors',
name: 'Authors',
},
{
'@type': 'ListItem',
position: 3,
item: {
'@id': 'https://example.com/books/authors/annleckie',
name: 'Ann Leckie',
},
item: 'https://example.com/books/authors/annleckie',
name: 'Ann Leckie',
},
{
'@type': 'ListItem',
position: 4,
item: {
'@id':
'https://example.com/books/authors/annleckie/ancillaryjustice',
name: 'Ancillary Justice',
},
item: 'https://example.com/books/authors/annleckie/ancillaryjustice',
name: 'Ancillary Justice',
},
],
});
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/profilePage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ describe('ProfilePage JSON-LD', () => {
{
'@type': 'ListItem',
position: 1,
'@id': 'https://example.com/books',
item: 'https://example.com/books',
name: 'Books',
},
{
'@type': 'ListItem',
position: 2,
'@id': 'https://example.com/books/authors',
item: 'https://example.com/books/authors',
name: 'Authors',
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/utils/schema/setItemListElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function setItemListElements(items: ItemListElements[]) {
return items.map(item => ({
'@type': 'ListItem',
position: item.position,
'@id': item.item,
item: item.item,
name: item.name,
}));
}
Expand Down

0 comments on commit c9c5898

Please sign in to comment.