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 + ": Launch " + app + " with payload using DIAL server when application is already running and check for response code 201");
utils.printTestInfo(__filename.slice(__dirname.length + 1), "Launch " + app + " with payload using DIAL server when application is already running and check for response code 201");
})
.then(dial.getApplicationStatus.bind(null, host, app))
.then(function getCurrentAppState(result) {
@@ -59,10 +59,10 @@ function test() {
}
})
.then(function () {
console.log("TEST PASSED");
utils.printSuccess()
})
.fail(function handleError(err) {
console.error("TEST FAILED " + err);
utils.printFailure(err);
});
}