Clean up formatting.

This commit is contained in:
Michel Kaporin
2017-06-23 18:20:47 +02:00
parent 2903fc5ee5
commit 76b37f8eb2
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -89,8 +89,8 @@ export class Git {
}
const stagedTitle = scmHeaders.find((val) => {
return val.match(/staged/i) ? true : false;
});
return val.match(/staged/i) ? true : false;
});
if (!stagedTitle) {
return Promise.reject(`No 'Staged' header title found in SCM viewlet`);
@@ -98,7 +98,7 @@ export class Git {
const monacoRowIndex = scmHeaders.indexOf(stagedTitle);
try {
return this.spectron.waitFor(this.spectron.client.getText, `.scm-status.show-file-icons .monaco-list-rows>:nth-child(${monacoRowIndex+1}) .monaco-count-badge`);
return this.spectron.waitFor(this.spectron.client.getText, `.scm-status.show-file-icons .monaco-list-rows>:nth-child(${monacoRowIndex + 1}) .monaco-count-badge`);
} catch (e) {
return Promise.reject('Stage count badge cannot be found');
}
+2 -2
View File
@@ -30,9 +30,9 @@ export class IntegratedTerminal {
for (let i = 0; i < rows.value.length; i++) {
let rowText;
try {
rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i+1})`);
rowText = await this.spectron.client.getText(`${selector}>:nth-child(${i + 1})`);
} catch (e) {
return Promise.reject(`Failed to obtain text from line ${i+1} from the terminal.`);
return Promise.reject(`Failed to obtain text from line ${i + 1} from the terminal.`);
}
if (rowText.trim() === result) {
return true;