Fix module description highlight test

This commit is contained in:
Ramon Wenger 2024-03-10 16:19:45 +01:00
parent 0e2173afd5
commit f5b44cdf37
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ const getModule = (contents) => {
return {
intro: '<p>Introducing this great paragraph!</p>',
highlights: [],
slug: moduleSlug,
chapters: [
{
title: 'A Chapter',

View File

@ -53,6 +53,11 @@ const typePolicies = {
return previous !== undefined ? previous : false;
},
},
highlights: {
merge(_existing: HighlightNode[], incoming: HighlightNode[]) {
return incoming;
},
},
},
keyFields: ['slug'],
},