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

recurly / recurly-js / 5556

pending completion
5556

Pull #796

travis-ci-com

web-flow
Merge 974e0c35c into 939693dfc
Pull Request #796: feat(google pay): add support for requesting email

116 of 1620 branches covered (7.16%)

4 of 4 new or added lines in 1 file covered. (100.0%)

437 of 3175 relevant lines covered (13.76%)

20.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/util/load-script-promise.js
1
import Promise from 'promise';
2
import loadScript from 'load-script';
3

4
/**
5
 * Dynamically loads a script in a Promise
6
 *
7
 * @param {String} src URL of the script to load
8
 */
9

10
export default function loadScriptPromise (src) {
11
  return new Promise((resolve, reject) => {
×
12
    loadScript(src, (err, script) => {
×
13
      if (err) reject(err);
×
14
      else resolve(script);
×
15
    });
16
  });
17
}
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