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