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

ds82 / tiny-di / 45 / 2
97%
master: 91%

Build:
Build:
LAST BUILD BRANCH: greenkeeper-istanbul-0.4.3
DEFAULT BRANCH: master
Ran 10 Sep 2015 09:20AM UTC
Files 13
Run time 1s
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

10 Sep 2015 09:14AM UTC coverage: 97.333% (+0.01%) from 97.321%
45.2

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%)

4.65 hits per line

Source Files on job 45.2
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 45
  • Travis Job 45.2
  • 5e229840 on github
  • Prev Job for on feat/es6-polyfill (#44.2)
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