Skip to content

Commit

Permalink
disable security for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 25, 2016
1 parent 90cea98 commit d777ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/phantom_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var phantom = require('../')
describe('phantom driver', function () {
it('should have sensible defaults', function (done) {
var crawler = Crawler()
.driver(phantom())
.driver(phantom({ webSecurity: false }))

crawler('http://google.com', function (err, ctx) {
if (err) return done(err)
Expand All @@ -30,7 +30,7 @@ describe('phantom driver', function () {

it('should work with client-side pages', function (done) {
var crawler = Crawler()
.driver(phantom())
.driver(phantom({ webSecurity: false }))

crawler('https://exchange.coinbase.com/trade', function (err, ctx) {
if (err) return done(err)
Expand Down

0 comments on commit d777ad7

Please sign in to comment.