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 => {
|
||||
return userSearch({term: 'Team'}).then((results)=>{
|
||||
assert.equal(results[results.length-1]["name"], "team");
|
||||
});
|
||||
QUnit.test("it places groups unconditionally for exact match", async assert => {
|
||||
let results = await userSearch({term: 'Team'});
|
||||
assert.equal(results[results.length-1]["name"], "team");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue