Avoid accessing body.completed if body isn't truey in saucelabs.js.

This commit is contained in:
John-David Dalton
2014-01-25 18:12:00 -08:00
parent 5beef690ad
commit 129e56e570

View File

@@ -311,7 +311,7 @@
}, function(error, response, body) {
var statusCode = response && response.statusCode;
if (statusCode == 200) {
if (body.completed) {
if (body && body.completed) {
logInline('');
handleTestResults(body['js tests']);
}