Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Oct 1, 2016
1 parent 756a6b0 commit 9e29263
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lighthouse-core/test/gather/gatherers/http-redirect-test.js
Expand Up @@ -17,6 +17,10 @@

/* eslint-env mocha */

process.on('unhandledRejection', reason => {
console.log('Reason: ', reason);
});

const HTTPRedirectGather = require('../../../gather/gatherers/http-redirect');
const assert = require('assert');
let httpRedirectGather;
Expand Down Expand Up @@ -66,6 +70,9 @@ describe('HTTP Redirect gatherer', () => {
}
}).then(_ => {
assert.ok(httpRedirectGather.artifact.value);
}).catch(err => {
console.log('********* returns an artifact ******');
console.log(JSON.stringify(err));
});
});

Expand All @@ -80,7 +87,7 @@ describe('HTTP Redirect gatherer', () => {
assert.equal(httpRedirectGather.artifact.value, false);
assert.ok(httpRedirectGather.artifact.debugString);
}).catch(err => {
console.log('********* whaaaaaaaaat ******');
console.log('********* handles driver failure ******');
console.log(JSON.stringify(err));
});
});
Expand Down Expand Up @@ -115,6 +122,9 @@ describe('HTTP Redirect gatherer', () => {
});
}).then(_ => {
assert.deepStrictEqual(httpRedirectGather.artifact, artifact);
}).catch(err => {
console.log('********* handles driver timeout ******');
console.log(JSON.stringify(err));
});
});
});

0 comments on commit 9e29263

Please sign in to comment.