From 17a7bb8e232614769f2f714fde57b5101f291120 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 17 May 2018 17:17:58 +1000 Subject: [PATCH] use async test --- test/javascripts/lib/user-search-test.js.es6 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/javascripts/lib/user-search-test.js.es6 b/test/javascripts/lib/user-search-test.js.es6 index 98b59388597..a34f1143950 100644 --- a/test/javascripts/lib/user-search-test.js.es6 +++ b/test/javascripts/lib/user-search-test.js.es6 @@ -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"); });