mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: exact group match always should be added
This commit is contained in:
9
test/javascripts/lib/user-search-test.js.es6
Normal file
9
test/javascripts/lib/user-search-test.js.es6
Normal file
@ -0,0 +1,9 @@
|
||||
import userSearch from 'discourse/lib/user-search';
|
||||
|
||||
module("lib:user-search");
|
||||
|
||||
test("it places groups unconditionally for exact match", function() {
|
||||
return userSearch({term: 'team'}).then((results)=>{
|
||||
equal(results[results.length-1]["name"], "team");
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user