Closed Bug 1051512 Opened 12 years ago Closed 12 years ago

Upgrade version of mocha used by test-agent to >= 1.18.0 for promise support

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 874510

People

(Reporter: gaye, Unassigned)

Details

As of mocha 1.18, you can do things like ```js test('should fail', function() { return new Promise((resolve, reject) => { setTimeout(function() { reject(new Error('Oops!')); }); }); }); ``` and mocha will be able to wait to pass/fail based on the result of the returned promise. This is important for writing clean tests for functions that return promises. We should upgrade our version of mocha required by test-agent to >= 0.18.
Julien, James? Thoughts? Are there any constraints on doing this?
Flags: needinfo?(jlal)
Flags: needinfo?(felash)
See bug 874510. It was nearly finished one month ago but I have to finish something in the test agent first.
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(felash)
Resolution: --- → DUPLICATE
clearing NI
Flags: needinfo?(jlal)
You need to log in before you can comment on or make changes to this bug.