use sprintf-js to format console logs

This commit is contained in:
Shruti Ranganathan Jothi
2017-03-08 09:57:53 -08:00
parent 44f1acb300
commit ac26da16e2
18 changed files with 72 additions and 53 deletions

View File

@@ -11,7 +11,7 @@ function test() {
return new Q()
.then(function () {
console.log("TEST " + __filename + ": Try to stop invalid " + app + " application instance and check for DIAL server response code 404");
utils.printTestInfo(__filename.slice(__dirname.length + 1), "Try to stop invalid " + app + " application instance and check for DIAL server response code 404");
})
.then(dial.launchApplication.bind(null, host, app))
.delay(timeToWaitForStateChange)
@@ -46,10 +46,10 @@ function test() {
}
})
.then(function () {
console.log("TEST PASSED");
utils.printSuccess()
})
.fail(function handleError(err) {
console.error("TEST FAILED " + err);
utils.printFailure(err);
});
}