Skip to content
Browse files

use better test path

  • Loading branch information...
1 parent 23bf76c commit afc2e195f2fe77192d4c576a5e6afd2cd2beb7d2 @carlos8f committed Jul 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/basic.js
View
4 test/basic.js
@@ -21,15 +21,15 @@ describe('basic test', function() {
}).listen(port, done);
});
it('performs a request', function(done) {
- request({url: baseUrl + '/', json: true}, function(err, res, data) {
+ request({url: baseUrl + '/test/url', json: true}, function(err, res, data) {
assert.equal(res.statusCode, 200);
assert.strictEqual(data.hello, 'world');
done();
});
});
it('can tail the log', function(done) {
exec('tail ' + tmpLog, function(err, stdout, stderr) {
- assert(/^127\.0\.0\.1 \- \- \[[0-9]{2}\/\w{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} (\+|\-)[0-9]{4}\] "GET \/ HTTP\/1\.1" 200 17 "\-" "\-"\n$/.exec(stdout));
+ assert(/^127\.0\.0\.1 \- \- \[[0-9]{2}\/\w{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} (\+|\-)[0-9]{4}\] "GET \/test\/url HTTP\/1\.1" 200 17 "\-" "\-"\n$/.exec(stdout));
done();
});
});

0 comments on commit afc2e19

Please sign in to comment.
Something went wrong with that request. Please try again.