Skip to content

Commit c29ca43

Browse files
committed
tests
1 parent ea4d999 commit c29ca43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/extension.simpleRefactor.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,17 @@ suite('Simple Refactor', () => {
8787
textEditor = editor;
8888
return;
8989
}).then(() => {
90+
console.log('Started Variable Extraction');
9091
return extractVariable(EXTENSION_DIR, textEditor, rangeOfTextToExtract, ch, path.dirname(refactorTargetFile), false).then(() => {
9192
assert.equal(textDocument.lineAt(234).text.trim().indexOf('newvariable'), 0, 'New Variable not created');
9293
assert.equal(textDocument.lineAt(234).text.trim().endsWith('= "STARTED"'), true, 'Started Text Assigned to variable');
9394
assert.equal(textDocument.lineAt(235).text.indexOf('(newvariable') >= 0, true, 'New Variable not being used');
9495
}).catch(error => {
95-
console.log('Error in extraction');
96+
console.log('Error in Variable Extraction.1');
9697
assert.fail(error + '', null, 'Variable extraction failed\n' + ch.output);
9798
});
9899
}, error => {
99-
console.log('Error before extraction');
100+
console.log('Error in Variable Extraction.2');
100101
assert.fail(error + '', null, 'Variable extraction failed\n' + ch.output);
101102
});
102103
});

0 commit comments

Comments
 (0)