Skip to content

Conversation

@agsha
Copy link

@agsha agsha commented Jul 24, 2013

Please see readme of master for details of what this pull request is

agsha and others added 11 commits July 23, 2013 16:19
…'ed object uses relative paths in require.

example:
consider a directory structure
````
|___orm
|     |
|     |__user.js
|     |__permission.js
|___app.js

````
Then we can do this:
````javascript
mocks = {
  '/absolute/path/to/project/orm/permission.js' : require('./mock_permission')
}

var user = loadFile(__dirname+"/user.js", mock);
var app = loadFile(__dirname+"/app.js", mock);
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant