Skip to content

Commit cf2f612

Browse files
committed
fix(unittest): Fix Mock object for editorInterface
the link property should be inside a sys object and not directly attached to the entity
1 parent c7c43bc commit cf2f612

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/unit/entities/editor-interface-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('Editor Interface is wrapped', (t) => {
2020
})
2121
})
2222

23-
test('ContentType update', (t) => {
23+
test('EditorInterface update', (t) => {
2424
return entityUpdateTest(t, setup, {
2525
wrapperMethod: wrapEditorInterface
2626
})

test/unit/mocks/entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const entryMock = {
5555
const editorInterfaceMock = {
5656
sys: assign(cloneDeep(sysMock), {
5757
type: 'EditorInterface',
58-
contentType: assign(cloneDeep(linkMock), {linkType: 'ContentType'}),
58+
contentType: {sys: assign(cloneDeep(linkMock), {linkType: 'ContentType'})},
5959
space: assign(cloneDeep(linkMock), {linkType: 'Space'})
6060
}),
6161
controls: [

0 commit comments

Comments
 (0)