circlecidemo
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "circlecidemo", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "demo project", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"phantom": "^0.7.2", | ||
"istanbul": "^0.3.13", | ||
@@ -28,0 +29,0 @@ "jasmine": "^2.2.1", |
@@ -151,4 +151,26 @@ var health = require('../index'); | ||
}); | ||
it("Run phantomjs", function(done) { | ||
var phantom = require('phantom'); | ||
phantom.create(function (ph) { | ||
console.log("Phantom JS testing, circle has Phantom built in") | ||
ph.createPage(function (page) { | ||
page.open("http://www.google.com", function (status) { | ||
console.log("opened google? ", status); | ||
page.evaluate(function () { return document.title; }, function (result) { | ||
console.log('Page title is ' + result); | ||
ph.exit(); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); | ||
createDelayedConnectionMockService = function(url, timeout) { | ||
@@ -155,0 +177,0 @@ return nock(url) |
13510
11
281
5