diff --git a/packages/monaco-editor-react/src/index.tsx b/packages/monaco-editor-react/src/index.tsx index 8819e0e..ee465aa 100644 --- a/packages/monaco-editor-react/src/index.tsx +++ b/packages/monaco-editor-react/src/index.tsx @@ -140,7 +140,7 @@ export class MonacoEditorReactComp { createMonacoEditorDiv(); const wrapper = new MonacoEditorLanguageClientWrapper(); await expect(async () => { - await wrapper.noInitJustStart(document.getElementById('monaco-editor-root')); - }).rejects.toThrowError('No init was performed. Please call init() before noInitJustStart()'); + await wrapper.start(document.getElementById('monaco-editor-root')); + }).rejects.toThrowError('No init was performed. Please call init() before start()'); }); test('Expected throw: Call normal start with prior init', async () => {