File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
packages/form-js-playground/test/spec Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -312,38 +312,6 @@ describe('JSONEditor', function () {
312
312
expect ( completionDisplayLabels ) . to . include ( '"baz"' ) ;
313
313
} ) ;
314
314
} ) ;
315
-
316
- it ( 'should suggest property completion after comma' , async function ( ) {
317
- // given
318
- const initialValue = '{ "foo": "bar",\n }' ;
319
- const variables = [ 'foobar' , 'baz' ] ;
320
-
321
- const editor = new JSONEditor ( ) ;
322
- editor . setValue ( initialValue ) ;
323
- editor . setVariables ( variables ) ;
324
-
325
- const cm = editor . getView ( ) ;
326
-
327
- // move cursor after the comma and newline
328
- select ( cm , 15 ) ;
329
-
330
- // when
331
- startCompletion ( cm ) ;
332
-
333
- // then
334
- await expectEventually ( ( ) => {
335
- const completions = currentCompletions ( cm . state ) ;
336
- expect ( completions ) . to . have . length ( 2 ) ;
337
-
338
- const completionLabels = completions . map ( ( { label } ) => label ) ;
339
- const completionDisplayLabels = completions . map ( ( { displayLabel } ) => displayLabel ) ;
340
-
341
- expect ( completionLabels ) . to . include ( '"foobar": ' ) ;
342
- expect ( completionLabels ) . to . include ( '"baz": ' ) ;
343
- expect ( completionDisplayLabels ) . to . include ( '"foobar"' ) ;
344
- expect ( completionDisplayLabels ) . to . include ( '"baz"' ) ;
345
- } ) ;
346
- } ) ;
347
315
} ) ;
348
316
} ) ;
349
317
You can’t perform that action at this time.
0 commit comments