Log redux state after finishing + Reformat

This commit is contained in:
Abhas
2018-07-12 13:33:50 +05:30
parent 0c75a089c3
commit 7d5a4000f2
+6 -1
View File
@@ -503,12 +503,17 @@ class GithubDetectUnusedRepos {
} }
export function runMain(username: string = 'bendtherules') { export function runMain(username: string = 'bendtherules') {
new GithubDetectUnusedRepos(username) const instance = new GithubDetectUnusedRepos(username);
instance
.fetchUnusedForkedRepos() .fetchUnusedForkedRepos()
.then(unusedRepoNames => { .then(unusedRepoNames => {
// tslint:disable-next-line:no-console // tslint:disable-next-line:no-console
console.log(unusedRepoNames); console.log(unusedRepoNames);
console.log(instance.reduxStore.getState());
}); });
} }
// Next steps // Next steps