Skip to content

Commit

Permalink
fix: remove comments from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Spacek committed Jan 14, 2021
1 parent 1bb8be9 commit 252c1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
30 changes: 2 additions & 28 deletions test/autoCompletion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/testArrayCompletionSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
}
},
"type": "object"
}
}

0 comments on commit 252c1e8

Please sign in to comment.