@@ -95,7 +95,7 @@ describe('Test Test EditorApp (classic)', () => {
9595 } ) ;
9696
9797 const editorApp = new EditorApp ( editorAppConfig ) ;
98- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
98+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
9999
100100 expect ( editorApp ) . toBeDefined ( ) ;
101101
@@ -114,7 +114,7 @@ describe('Test Test EditorApp (classic)', () => {
114114 } ) ;
115115 const editorApp = new EditorApp ( editorAppConfig ) ;
116116
117- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
117+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
118118
119119 const modelRefs = editorApp [ 'modelRefs' ] ;
120120 expect ( modelRefs ?. modified ) . toBeDefined ( ) ;
@@ -132,7 +132,7 @@ describe('Test Test EditorApp (classic)', () => {
132132 } ) ;
133133
134134 const editorApp = new EditorApp ( editorAppConfig ) ;
135- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
135+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
136136 await expect ( async ( ) => {
137137 await editorApp . start ( htmlContainer ) ;
138138 } ) . rejects . toThrowError ( 'Start was called without properly disposing the EditorApp first.' ) ;
@@ -149,9 +149,9 @@ describe('Test Test EditorApp (classic)', () => {
149149 } ) ;
150150 const editorApp = new EditorApp ( editorAppConfig ) ;
151151
152- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
152+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
153153 await editorApp . dispose ( ) ;
154- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
154+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
155155
156156 await editorApp . dispose ( ) ;
157157 } ) ;
@@ -172,7 +172,7 @@ describe('Test Test EditorApp (classic)', () => {
172172
173173 const editorApp = new EditorApp ( editorAppConfig ) ;
174174
175- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
175+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
176176
177177 const modelRefs = editorApp [ 'modelRefs' ] ;
178178 expect ( modelRefs ?. modified ) . toBeDefined ( ) ;
@@ -196,7 +196,7 @@ describe('Test Test EditorApp (classic)', () => {
196196 } ;
197197 const editorApp = new EditorApp ( editorAppConfig ) ;
198198
199- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
199+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
200200
201201 const modelRefs = editorApp [ 'modelRefs' ] ;
202202 expect ( modelRefs ?. modified ) . toBeDefined ( ) ;
@@ -218,7 +218,7 @@ describe('Test Test EditorApp (classic)', () => {
218218 } ;
219219 const editorApp = new EditorApp ( editorAppConfig ) ;
220220
221- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
221+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
222222
223223 const modelRefs = editorApp [ 'modelRefs' ] ;
224224 expect ( modelRefs ?. modified ) . toBeDefined ( ) ;
@@ -243,7 +243,7 @@ describe('Test Test EditorApp (classic)', () => {
243243 } ) ;
244244 editorAppConfig . codeResources = { } ;
245245 const editorApp = new EditorApp ( editorAppConfig ) ;
246- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
246+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
247247
248248 const modelRefs = editorApp [ 'modelRefs' ] ;
249249 // default modelRef is created with regular editor even if no codeResources are given
@@ -263,11 +263,11 @@ describe('Test Test EditorApp (classic)', () => {
263263 editorAppConfig . codeResources = { } ;
264264 const editorApp = new EditorApp ( editorAppConfig ) ;
265265
266- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
266+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
267267
268268 editorApp . setModelRefDisposeTimeout ( 1000 ) ;
269269
270- editorApp . updateCodeResources ( {
270+ await editorApp . updateCodeResources ( {
271271 modified : {
272272 text : 'const text = "Hello World!";' ,
273273 uri : '/workspace/statemachineUri.statemachine'
@@ -294,14 +294,14 @@ describe('Test Test EditorApp (classic)', () => {
294294 expect ( modelRefsBefore ?. modified ) . toBeUndefined ( ) ;
295295 expect ( modelRefsBefore ?. original ) . toBeUndefined ( ) ;
296296
297- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
297+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
298298
299299 editorApp . registerOnTextChangedCallback ( ( textChanges : TextContents ) => {
300300 console . log ( textChanges ) ;
301301 expect ( textChanges . modified ) . toEqual ( '// comment' ) ;
302302 } ) ;
303303
304- await expect ( await editorApp . updateCodeResources ( {
304+ expect ( await editorApp . updateCodeResources ( {
305305 modified : {
306306 text : '// comment' ,
307307 uri : '/workspace/test.statemachine' ,
@@ -323,7 +323,7 @@ describe('Test Test EditorApp (classic)', () => {
323323 }
324324 } ) ;
325325 const editorApp = new EditorApp ( editorAppConfig ) ;
326- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
326+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
327327
328328 const currentModel = editorApp . getEditor ( ) ?. getModel ( ) ;
329329 expect ( monaco . editor . getModels ( ) . includes ( currentModel ! ) ) . toBeTruthy ( ) ;
@@ -342,7 +342,7 @@ describe('Test Test EditorApp (classic)', () => {
342342 } ) ;
343343 const editorApp = new EditorApp ( editorAppConfig ) ;
344344
345- await expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
345+ expect ( await editorApp . start ( htmlContainer ) ) . toBeUndefined ( ) ;
346346
347347 const currentModel = editorApp . getEditor ( ) ?. getModel ( ) ;
348348 expect ( monaco . editor . getModels ( ) . includes ( currentModel ! ) ) . toBeTruthy ( ) ;
0 commit comments