1 var wd = require('wd');
2 var app = require('../../examples/express/app');
3 var assert = require('assert');
5 var port = process.env.LR_PORT || process.env.PORT || 35729;
7 describe('mocha spec examples', function() {
11 describe('tinylr', function() {
14 before(function(done) {
15 var browser = this.browser = wd.remote('localhost', process.env.WD_PORT || 9134);
19 before(function(done) {
21 app.listen(port, done);
24 beforeEach(function(done) {
25 this.browser.get('http://localhost:' + port, done);
28 it('should retrieve the page title', function(done) {
29 this.browser.title(function(err, title) {
30 if (err) return done(err);
31 assert.equal(title, 'WD Tests');
36 it('edit file, assert change');