1.0.0 • Published 10 years ago

karma-as-promised v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

karma-as-promised Build Status

A lightweight promise wrapper for Karma's public API. This wrapper will not replace or alter any of Karma's methods directly. Anywhere you would require('karma'), just require('karma-as-promised') instead. The configuration will be passed through directly.

When Karma reports an exit code of 0, the promise resolves. For any other code, it is rejected.

Example

require('karma-as-promised').server.start(config)
  .then(function () {
    // tests exited with code 0
  })
  .catch(function (err) {
    // err.message => Karma exited with code {code}
  });