Skip to content

Commit

Permalink
tests(bin-cases): expose extractSummary as function
Browse files Browse the repository at this point in the history
tests(bin-cases): expose extractSummary as function

tests(bin-cases): stop using extractSummary in util
  • Loading branch information
hemal7735 committed Jan 21, 2019
1 parent 72eec5f commit f5ce208
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/testUtils.js
Expand Up @@ -25,9 +25,6 @@ function run(testCase, args = []) {
reject: false
});

// TODO: STRIP OUT THE OUTPUT
result.stdout = removeTimeStrings(result.stdout);

return result;
}

Expand Down Expand Up @@ -57,13 +54,12 @@ function runWatch(testCase, args = []) {
})
);
watchPromise.then(result => {
result.stdout = removeTimeStrings(result.stdout);
resolve(result);
});
});
}

function removeTimeStrings(stdout) {
function extractSummary(stdout) {
if (stdout === "") {
return "";
}
Expand Down Expand Up @@ -152,4 +148,4 @@ function extractHash(stdout) {
return hashInfo;
}

module.exports = { run, runWatch, extractHash };
module.exports = { run, runWatch, extractHash, extractSummary };

0 comments on commit f5ce208

Please sign in to comment.