Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[v0.6 test] Remove `require.paths` and `sys` from tests

  • Loading branch information...
commit 12cbc46ddb8ced77637b39a2e841a0831d152511 1 parent 88e66db
authored October 23, 2011

Showing 1 changed file with 7 additions and 10 deletions. Show diff stats Hide diff stats

  1. 17  test/journey-test.js
17  test/journey-test.js
... ...
@@ -1,15 +1,12 @@
1  
-var sys = require('sys'),
2  
-   http = require('http'),
3  
- assert = require('assert'),
4  
-   path = require('path'),
5  
- events = require('events'),
6  
-    url = require('url');
  1
+var http = require('http'),
  2
+  assert = require('assert'),
  3
+    path = require('path'),
  4
+  events = require('events'),
  5
+     url = require('url');
7 6
 
8 7
 var vows = require('vows');
9 8
 
10  
-require.paths.unshift(__dirname, path.join(__dirname, '..'));
11  
-
12  
-var journey = require('lib/journey');
  9
+var journey = require('../lib/journey');
13 10
 
14 11
 var resources = {
15 12
     "home": {
@@ -111,7 +108,7 @@ router.map(function (map) {
111 108
     });
112 109
 });
113 110
 
114  
-var mock = require('lib/journey/mock-request').mock(router);
  111
+var mock = require('../lib/journey/mock-request').mock(router);
115 112
 
116 113
 var get = mock.get,
117 114
     del = mock.del,

0 notes on commit 12cbc46

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