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

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

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

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 45.1 10 Sep 2015 09:20AM UTC 0
97.33
Travis Job 45.1
2 45.2 10 Sep 2015 09:20AM UTC 0
97.33
Travis Job 45.2
3 45.3 10 Sep 2015 09:20AM UTC 0
97.33
Travis Job 45.3
4 45.4 10 Sep 2015 09:20AM UTC 0
97.33
Travis Job 45.4
Source Files on build 45
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #45
  • 5e229840 on github
  • Prev Build on feat/es6-polyfill (#44)
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