use async test

This commit is contained in:
Sam 2018-05-17 17:17:58 +10:00
parent efe7b6dbc1
commit 17a7bb8e23
1 changed files with 3 additions and 4 deletions

View File

@ -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)=>{
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");
});
});