• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ds82 / tiny-di / 49
97%
master: 91%

Build:
Build:
LAST BUILD BRANCH: greenkeeper-istanbul-0.4.3
DEFAULT BRANCH: master
Ran 25 Sep 2015 03:18PM UTC
Jobs 4
Files 13
Run time 48s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
49

push

travis-ci

ds82
feat(resolver): default resolver now accepts require

It is now possible to pass in an external require to the default resolver.
This is needed, if tiny-di is not installed as node_module of the application.
This is e.g. the case, if it is linked via `npm link`:

```bash
/some/tiny-di: npm link
/some/app: npm link tiny-di
```

The real path of tiny-di in this scenario is /some/tiny-di. Requiring modules
which are installed under /some/app/node_modules will fail.

To solve this, the app should do this:

```js
var $injector = new Injector();
$injector.setResolve($injector.getResolver(require));
```

Doing this will pass the require of the app to tiny-di. The require of the
app can load modules from /some/app/node_modules

438 of 450 relevant lines covered (97.33%)

18.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 49.1 25 Sep 2015 03:18PM UTC 0
97.33
Travis Job 49.1
2 49.2 25 Sep 2015 03:18PM UTC 0
97.33
Travis Job 49.2
3 49.3 25 Sep 2015 03:19PM UTC 0
97.33
Travis Job 49.3
4 49.4 25 Sep 2015 03:19PM UTC 0
97.33
Travis Job 49.4
Source Files on build 49
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #49
  • d2b6b432 on github
  • Prev Build on greenkeeper-pin (#48)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc