nightwatch
Advanced tools
Comparing version 0.5.17 to 0.5.18
@@ -210,3 +210,4 @@ var Runner = require('../lib/runner/run.js'); | ||
callback = callback || function() {}; | ||
var beforeGlobal = this.test_settings.globals && this.test_settings.globals.before || function(done) {done();}; | ||
var beforeGlobal = this.test_settings && this.test_settings.globals && | ||
this.test_settings.globals.before || function(done) {done();}; | ||
@@ -213,0 +214,0 @@ if (!this.manageSelenium) { |
@@ -115,6 +115,5 @@ module.exports = function(client) { | ||
* this.demoTest = function (browser) { | ||
* browser.getTitle(function(result) { | ||
* this.assert.equal(typeof result, 'object'); | ||
* this.assert.equal(result.status, 0); | ||
* this.assert.equal(result.value, 'Nightwatch.js'); | ||
* browser.getTitle(function(title) { | ||
* this.assert.equal(typeof title, 'string'); | ||
* this.assert.equal(title, 'Nightwatch.js'); | ||
* }); | ||
@@ -121,0 +120,0 @@ * }; |
{ | ||
"name": "nightwatch", | ||
"description": "A node.js bindings implementation for selenium 2.0/webdriver", | ||
"version": "0.5.17", | ||
"version": "0.5.18", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrei Rusu", |
357593