@@ -1711,18 +1711,6 @@ suite('Auto Completion Tests', () => {
1711
1711
} ) ;
1712
1712
} ) ;
1713
1713
describe ( 'Array completion' , ( ) => {
1714
- //test_simpleArrayObject
1715
- // it('Simple array object completion without "-" without any item', async () => {
1716
- // const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
1717
- // languageService.addSchema(SCHEMA_ID, schema);
1718
- // const content = 'test_simpleArrayObject:\n ';
1719
- // const completion = parseSetup(content, content.length);
1720
- // completion.then(function (result) {
1721
- // assert.equal(result.items.length, 1);
1722
- // assert.equal(result.items[0]?.label, '- (array item)');
1723
- // });
1724
- // });
1725
- //worked ok
1726
1714
it ( 'Simple array object completion with "-" without any item' , async ( ) => {
1727
1715
const schema = require ( path . join ( __dirname , './fixtures/testArrayCompletionSchema.json' ) ) ;
1728
1716
languageService . addSchema ( SCHEMA_ID , schema ) ;
@@ -1733,7 +1721,7 @@ suite('Auto Completion Tests', () => {
1733
1721
assert . equal ( result . items [ 0 ] . label , '- (array item)' ) ;
1734
1722
} ) ;
1735
1723
} ) ;
1736
- //worked ok
1724
+
1737
1725
it ( 'Simple array object completion without "-" after array item' , async ( ) => {
1738
1726
const schema = require ( path . join ( __dirname , './fixtures/testArrayCompletionSchema.json' ) ) ;
1739
1727
languageService . addSchema ( SCHEMA_ID , schema ) ;
@@ -1744,7 +1732,7 @@ suite('Auto Completion Tests', () => {
1744
1732
assert . equal ( result . items [ 0 ] . label , '- (array item)' ) ;
1745
1733
} ) ;
1746
1734
} ) ;
1747
- //worked ok
1735
+
1748
1736
it ( 'Simple array object completion with "-" after array item' , async ( ) => {
1749
1737
const schema = require ( path . join ( __dirname , './fixtures/testArrayCompletionSchema.json' ) ) ;
1750
1738
languageService . addSchema ( SCHEMA_ID , schema ) ;
@@ -1756,19 +1744,6 @@ suite('Auto Completion Tests', () => {
1756
1744
} ) ;
1757
1745
} ) ;
1758
1746
1759
- //test_array_anyOf_2objects
1760
- // it('Array anyOf two objects completion without "-" without any item', async () => {
1761
- // const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
1762
- // languageService.addSchema(SCHEMA_ID, schema);
1763
- // const content = 'test_array_anyOf_2objects:\n ';
1764
- // const completion = parseSetup(content, content.length);
1765
- // completion.then(function (result) {
1766
- // assert.equal(result.items.length, 1);
1767
- // assert.equal(result.items[0].label, '- (array item)');
1768
- // });
1769
- // });
1770
-
1771
- //worked ok
1772
1747
it ( 'Array anyOf two objects completion with "- " without any item' , async ( ) => {
1773
1748
const schema = require ( path . join ( __dirname , './fixtures/testArrayCompletionSchema.json' ) ) ;
1774
1749
languageService . addSchema ( SCHEMA_ID , schema ) ;
@@ -1802,7 +1777,6 @@ suite('Auto Completion Tests', () => {
1802
1777
} ) ;
1803
1778
} ) ;
1804
1779
1805
- //worked ok
1806
1780
it ( 'Array anyOf two objects completion with "-" after array item' , async ( ) => {
1807
1781
const schema = require ( path . join ( __dirname , './fixtures/testArrayCompletionSchema.json' ) ) ;
1808
1782
languageService . addSchema ( SCHEMA_ID , schema ) ;
0 commit comments