Fix Error 1001: JavaScript profiling failed (#197)

Fix for Error 1001: JavaScript profiling failed
This commit is contained in:
Gaël Métais
2016-10-06 10:59:29 +08:00
committed by GitHub
parent cee48c1f45
commit 9898a8424a
4 changed files with 45 additions and 9 deletions
+15
View File
@@ -109,6 +109,21 @@ describe('index.js', function() {
});
});
it('should succeed on try-catch.html', function(done) {
this.timeout(15000);
var url = 'http://localhost:8388/try-catch.html';
ylt(url)
.then(function(data) {
data.toolsResults.phantomas.metrics.should.have.a.property('jsErrors').that.equals(0);
done();
}).fail(function(err) {
console.log.restore();
done(err);
});
});
it('should take a screenshot', function(done) {
this.timeout(15000);