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

firebase / angularfire / 600
94%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2014 12:29AM UTC
Jobs 1
Files 6
Run time 5s
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
600

Pull #488

travis-ci

jamestalmage
utils: add makeNodeResolver function.

Many Firebase methods take Node.js style callbacks where the first
argument is null do indicate success or contains error information.
Angular uses promises to handle asyncronous flow. The original
[Q](https://github.com/kriskowal/q) library by kriskowal (upon which
had Angular promises are based) had a `makeNodeResolver` function
that eased integration of the two different async flows.

This utility function replicates that feature. Usage is as follows:

```javascript
var defer = $q.defer();
ref.resetPassword(
  {email:'somebody@somewhere.com'},
  $util.makeNodeResolver(defer) //automatically resolves/rejects promise
);

defer.promise.then(...) // use the promise as you normally would
```
Pull Request #488: utils: add makeNodeResolver function.

12 of 12 new or added lines in 2 files covered. (100.0%)

653 of 676 relevant lines covered (96.6%)

111.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/utils.js
Jobs
ID Job ID Ran Files Coverage
1 600.1 29 Nov 2014 12:29AM UTC 0
96.6
Travis Job 600.1
Source Files on build 600
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #600
  • Pull Request #488
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

© 2026 Coveralls, Inc