/**
 * Created by JiaHao on 18/8/15.
 */

var phantomBase = require('./../lib/phantomBase');

const testUrls = ['http://techcrunch.com/', 'https://www.facebook.com/'];


describe('Base PhantomJS functions', function () {
    this.timeout(30000);
    it('Can open a page', function (done) {
        phantomBase.openPage(testUrls[1], function (error, page, ph) {
            ph.exit();
            done(error);
        })
    })


});
@@ -35,16 +35,47 @@
 5.%0A */%0A%0A
+%0Avar async = require('async');%0A
 var phan
@@ -118,16 +118,17 @@
 ase');%0A%0A
+%0A
 const te
@@ -205,17 +205,25 @@
 scribe('
-B
+Testing b
 ase Phan
@@ -275,9 +275,9 @@
 out(
-3
+5
 0000
@@ -319,24 +319,89 @@
 on (done) %7B%0A
+%0A        async.each(testUrls, function (testUrl, callback) %7B%0A    
         phan
@@ -428,12 +428,8 @@
 tUrl
-s%5B1%5D
 , fu
@@ -467,16 +467,20 @@
         
+  
+  
 ph.exit(
@@ -479,24 +479,102 @@
 ph.exit();%0A 
+               callback(error);%0A            %7D);%0A        %7D, function (error) %7B%0A
            d
@@ -595,16 +595,18 @@
       %7D)
+;%0A
 %0A    %7D)%0A

Change test case to test with multiple urls