Fix module description highlight test
This commit is contained in:
parent
0e2173afd5
commit
f5b44cdf37
|
|
@ -13,6 +13,7 @@ const getModule = (contents) => {
|
|||
return {
|
||||
intro: '<p>Introducing this great paragraph!</p>',
|
||||
highlights: [],
|
||||
slug: moduleSlug,
|
||||
chapters: [
|
||||
{
|
||||
title: 'A Chapter',
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@ const typePolicies = {
|
|||
return previous !== undefined ? previous : false;
|
||||
},
|
||||
},
|
||||
highlights: {
|
||||
merge(_existing: HighlightNode[], incoming: HighlightNode[]) {
|
||||
return incoming;
|
||||
},
|
||||
},
|
||||
},
|
||||
keyFields: ['slug'],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue