diff --git a/test/autoCompletion.test.ts b/test/autoCompletion.test.ts index 39516768..a974dd68 100644 --- a/test/autoCompletion.test.ts +++ b/test/autoCompletion.test.ts @@ -1711,18 +1711,6 @@ suite('Auto Completion Tests', () => { }); }); describe('Array completion', () => { - //test_simpleArrayObject - // it('Simple array object completion without "-" without any item', async () => { - // const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); - // languageService.addSchema(SCHEMA_ID, schema); - // const content = 'test_simpleArrayObject:\n '; - // const completion = parseSetup(content, content.length); - // completion.then(function (result) { - // assert.equal(result.items.length, 1); - // assert.equal(result.items[0]?.label, '- (array item)'); - // }); - // }); - //worked ok it('Simple array object completion with "-" without any item', async () => { const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); languageService.addSchema(SCHEMA_ID, schema); @@ -1733,7 +1721,7 @@ suite('Auto Completion Tests', () => { assert.equal(result.items[0].label, '- (array item)'); }); }); - //worked ok + it('Simple array object completion without "-" after array item', async () => { const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); languageService.addSchema(SCHEMA_ID, schema); @@ -1744,7 +1732,7 @@ suite('Auto Completion Tests', () => { assert.equal(result.items[0].label, '- (array item)'); }); }); - //worked ok + it('Simple array object completion with "-" after array item', async () => { const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); languageService.addSchema(SCHEMA_ID, schema); @@ -1756,19 +1744,6 @@ suite('Auto Completion Tests', () => { }); }); - //test_array_anyOf_2objects - // it('Array anyOf two objects completion without "-" without any item', async () => { - // const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); - // languageService.addSchema(SCHEMA_ID, schema); - // const content = 'test_array_anyOf_2objects:\n '; - // const completion = parseSetup(content, content.length); - // completion.then(function (result) { - // assert.equal(result.items.length, 1); - // assert.equal(result.items[0].label, '- (array item)'); - // }); - // }); - - //worked ok it('Array anyOf two objects completion with "- " without any item', async () => { const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); languageService.addSchema(SCHEMA_ID, schema); @@ -1802,7 +1777,6 @@ suite('Auto Completion Tests', () => { }); }); - //worked ok it('Array anyOf two objects completion with "-" after array item', async () => { const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); languageService.addSchema(SCHEMA_ID, schema); diff --git a/test/fixtures/testArrayCompletionSchema.json b/test/fixtures/testArrayCompletionSchema.json index 6459e10a..0accf9ee 100644 --- a/test/fixtures/testArrayCompletionSchema.json +++ b/test/fixtures/testArrayCompletionSchema.json @@ -82,4 +82,4 @@ } }, "type": "object" - } \ No newline at end of file + }