Closed Bug 991663 Opened 10 years ago Closed 6 years ago

[TestAgent] Make the test-agent Promises friendly

Categories

(Firefox OS Graveyard :: Gaia::TestAgent, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: julienw, Unassigned)

References

Details

(Keywords: meta)

Writing tests for Promise-based code is currently quite cumbersome.

This bug would:
* upgrade mocha to the newest version so that it is Promise-aware (see [1])
* add Chai as promised [2]

[1] http://visionmedia.github.io/mocha/#asynchronous-code
[2] https://github.com/domenic/chai-as-promised/
And probably upgrade chai too, which may break existing tests, so we will need to fix those tests as well.
See Also: → 998257
Depends on: 1070047
Depends on: 874510
Depends on: 1094850
Keywords: meta
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.