Skip to content

Commit f2a02a2

Browse files
nathan-castlehowRokt33r
authored andcommitted
Fixed Test Fail Issue due to incorrect Require for context menu items
1 parent e85767b commit f2a02a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/contextMenuBuilder.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jest.mock('electron', () => {
44
})
55

66
const spellcheck = require('browser/lib/spellcheck')
7-
const buildEditorContextMenu = require('browser/lib/contextMenuBuilder')
8-
const buildMarkdownPreviewContextMenu = require('browser/lib/contextMenuBuilder')
7+
const buildEditorContextMenu = require('browser/lib/contextMenuBuilder').buildEditorContextMenu
8+
const buildMarkdownPreviewContextMenu = require('browser/lib/contextMenuBuilder').buildMarkdownPreviewContextMenu
99

1010
beforeEach(() => {
1111
menuBuilderParameter = null

0 commit comments

Comments
 (0)