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 authored and evenstensberg committed Feb 5, 2019
1 parent 5d2284b commit 73714f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/testUtils.js
Original file line number Diff line number Diff line change
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 73714f5

Please sign in to comment.