Skip to content

Commit aa36919

Browse files
committed
Lint
1 parent c7e7d46 commit aa36919

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

clicktests/environment.js

+23-20
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class Environment {
267267
logger.error('error while clicking', err);
268268
}
269269
}
270-
logger.info(`clicked "${selector}`)
270+
logger.info(`clicked "${selector}`);
271271
}
272272

273273
waitForNetworkIdle() {
@@ -393,25 +393,28 @@ class Environment {
393393
// After a click on `git-node` or `git-ref`, ensure `currentActionContext` is set
394394
async clickOnNode(nodeSelector) {
395395
await this.click(nodeSelector);
396-
await this.page.waitForFunction(() => {
397-
const app = ungit.__app;
398-
if (!app) {
399-
return;
400-
}
401-
const path = app.content();
402-
if (!path || path.constructor.name !== 'PathViewModel') {
403-
return;
404-
}
405-
const repository = path.repository();
406-
if (!repository) {
407-
return;
408-
}
409-
const graph = repository.graph;
410-
if (!graph) {
411-
return;
412-
}
413-
return graph.currentActionContext();
414-
}, { polling: 500 });
396+
await this.page.waitForFunction(
397+
() => {
398+
const app = ungit.__app;
399+
if (!app) {
400+
return;
401+
}
402+
const path = app.content();
403+
if (!path || path.constructor.name !== 'PathViewModel') {
404+
return;
405+
}
406+
const repository = path.repository();
407+
if (!repository) {
408+
return;
409+
}
410+
const graph = repository.graph;
411+
if (!graph) {
412+
return;
413+
}
414+
return graph.currentActionContext();
415+
},
416+
{ polling: 500 }
417+
);
415418
}
416419

417420
// If an api call matches `apiPart` and `method` is called, set the `globalVarName`

components/graph/selectable.js

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ class Selectable {
77
return graph.currentActionContext() == this;
88
},
99
write(val) {
10-
const valConstructorName = ((val || {}).constructor || {}).name;
11-
const thisConstructorName = ((val || {}).constructor || {}).name;
1210
// val is this if we're called from a click ko binding
1311
if (val === this || val === true) {
1412
graph.currentActionContext(this);

0 commit comments

Comments
 (0)