jmendiara/ng-di — pull request #5 by Wizek (2013-02-04 14:45:15+00:00)
Title: Fixes #4: Support ng-di-mocks.js in Node

Much nicer way than the init one, and works wonderfully with node, been using it in the past few days.

I think we should be wary of overly using global though.
Two other ways would be:

#### 2)
```js
var mocks = require('ng-di/mocks')
var module = mocks.module
var inject = mocks.inject
```

#### 3)

```js
var mocks = require('ng-di/mocks')
beforeEach(mocks.module(['myModule']))
beforeEach(mocks.inject(function(){"..."}))
```

I'm not sure I like these either.

Which one do you like best?
Do you have any better ideas?

### Disclaimer
Didn't yet test this in the browser. Btw, do we have tests to check whether it works in both environments?