Skip to content

Commit 252c1e8

Browse files
author
Petr Spacek
committed
fix: remove comments from test
1 parent 1bb8be9 commit 252c1e8

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed

test/autoCompletion.test.ts

+2-28
Original file line numberDiff line numberDiff line change
@@ -1711,18 +1711,6 @@ suite('Auto Completion Tests', () => {
17111711
});
17121712
});
17131713
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
17261714
it('Simple array object completion with "-" without any item', async () => {
17271715
const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
17281716
languageService.addSchema(SCHEMA_ID, schema);
@@ -1733,7 +1721,7 @@ suite('Auto Completion Tests', () => {
17331721
assert.equal(result.items[0].label, '- (array item)');
17341722
});
17351723
});
1736-
//worked ok
1724+
17371725
it('Simple array object completion without "-" after array item', async () => {
17381726
const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
17391727
languageService.addSchema(SCHEMA_ID, schema);
@@ -1744,7 +1732,7 @@ suite('Auto Completion Tests', () => {
17441732
assert.equal(result.items[0].label, '- (array item)');
17451733
});
17461734
});
1747-
//worked ok
1735+
17481736
it('Simple array object completion with "-" after array item', async () => {
17491737
const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
17501738
languageService.addSchema(SCHEMA_ID, schema);
@@ -1756,19 +1744,6 @@ suite('Auto Completion Tests', () => {
17561744
});
17571745
});
17581746

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
17721747
it('Array anyOf two objects completion with "- " without any item', async () => {
17731748
const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
17741749
languageService.addSchema(SCHEMA_ID, schema);
@@ -1802,7 +1777,6 @@ suite('Auto Completion Tests', () => {
18021777
});
18031778
});
18041779

1805-
//worked ok
18061780
it('Array anyOf two objects completion with "-" after array item', async () => {
18071781
const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json'));
18081782
languageService.addSchema(SCHEMA_ID, schema);

test/fixtures/testArrayCompletionSchema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@
8282
}
8383
},
8484
"type": "object"
85-
}
85+
}

0 commit comments

Comments
 (0)