Created
January 29, 2013 18:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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