mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Adopt new npm modules
This commit is contained in:
parent
ad77f86a8c
commit
ad86fb7954
4 changed files with 159 additions and 152 deletions
|
|
@ -6,7 +6,6 @@ requirejs.config({
|
|||
paths: {
|
||||
'vs/css': 'test/css.mock',
|
||||
'vs/nls': 'test/nls.mock',
|
||||
// 'vs': '../vscode/out/vs'
|
||||
'vs': 'node_modules/monaco-editor-core/dev/vs'
|
||||
},
|
||||
nodeRequire: require
|
||||
|
|
@ -16,6 +15,7 @@ let tmp = new jsdom.JSDOM('<!DOCTYPE html><html><body></body></html>');
|
|||
global.document = tmp.window.document;
|
||||
global.navigator = tmp.window.navigator;
|
||||
global.self = global;
|
||||
global.document.queryCommandSupported = function() { return false; };
|
||||
|
||||
requirejs(['./test/setup'], function() {
|
||||
}, function(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue