UNPKG

node-phantom-simple

Version:

Simple and reliable bridge between Node.js and PhantomJS / SlimerJS

24 lines (17 loc) 565 B
'use strict'; var assert = require('assert'); var driver = require('../'); describe('bad path', function () { it('bad path produces an error', function (done) { driver.create({ path: '@@@', ignoreErrorPattern: /execvp/ }, function (err) { assert.notEqual(null, err); done(); }); }); it('deprecated path name still should be ok', function (done) { driver.create({ phantomPath: '@@@', ignoreErrorPattern: /execvp/ }, function (err) { assert.notEqual(null, err, 'Bad path produces an error'); done(); }); }); });