var Browser = require('zombie'),
assert = require('chai').assert;
var browser;
suite('Cross-Page Tests', function () {
setup( function () {
browser = new Browser();
});
test('requesting a group rate from the hood river tour page' +
'should populate the referrer field', function ( done ) {
var referrer = 'http://localhost:3000/tours/hood-river';
browser.visit(referrer, function () {
browser.clickLink('.requestGroupRate', function () {
assert(browser.field('referrer').value === referrer);
done();
});
});
});
....
It's result should be 2 passing 1 failing, but the result is 3 failing.
Maybe there aren't syntax error of my source.
In this book, Zombie.js is used like below
It's result should be
2 passing 1 failing
, but the result is3 failing
. Maybe there aren't syntax error of my source.So, I saw the documentation of zombie.js There are outstanding difference of syntax followed by
It looks like
jasmine
.