Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Created January 29, 2013 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/4666652 to your computer and use it in GitHub Desktop.
Save lazywithclass/4666652 to your computer and use it in GitHub Desktop.
A simple expectation: visits a fixture url and checks that the url is what we expected
var expectation = function (found, cb) {
'use strict';
var expected = 'Sample site';
cb(found === expected, found, expected);
};
module.exports = function (instance, cb) {
'use strict';
instance.visit('/tests/fixtures/sample-site.html', function () {
expectation(instance.text('title'), cb);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment