use async test
This commit is contained in:
parent
efe7b6dbc1
commit
17a7bb8e23
|
@ -61,8 +61,7 @@ QUnit.module("lib:user-search", {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("it places groups unconditionally for exact match", assert => {
|
QUnit.test("it places groups unconditionally for exact match", async assert => {
|
||||||
return userSearch({term: 'Team'}).then((results)=>{
|
let results = await userSearch({term: 'Team'});
|
||||||
assert.equal(results[results.length-1]["name"], "team");
|
assert.equal(results[results.length-1]["name"], "team");
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue