Enable no unused parameters in vscode-api tests

This commit is contained in:
Matt Bierner
2018-10-01 16:12:05 -07:00
parent f1c7c19a36
commit 55567633b3
6 changed files with 40 additions and 39 deletions

View File

@@ -152,7 +152,7 @@ suite('editor tests', () => {
});
test('issue #16573: Extension API: insertSpaces and tabSize are undefined', () => {
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, doc) => {
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, _doc) => {
assert.equal(editor.options.tabSize, 4);
assert.equal(editor.options.insertSpaces, false);
@@ -180,21 +180,21 @@ suite('editor tests', () => {
});
test('issue #20757: Overlapping ranges are not allowed!', () => {
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, doc) => {
return withRandomFileEditor('Hello world!\n\tHello world!', (editor, _doc) => {
return editor.edit((builder) => {
// create two edits that overlap (i.e. are illegal)
builder.replace(new Range(0, 0, 0, 2), 'He');
builder.replace(new Range(0, 1, 0, 3), 'el');
}).then(
(applied) => {
(_applied) => {
assert.ok(false, 'edit with overlapping ranges should fail');
},
(err) => {
(_err) => {
assert.ok(true, 'edit with overlapping ranges should fail');
}
);
);
});
});
});