Updated get challenges api to return challenges sorted by which challenges include the habitica_official category (#10079)

and removed sorting on the official flag of the challenges object.

fixes #9955
This commit is contained in:
Travis
2018-03-17 14:26:24 -07:00
committed by Matteo Pagliazzi
parent 45eb19e992
commit 8c316d939f
3 changed files with 20 additions and 4 deletions

View File

@@ -193,7 +193,10 @@ describe('GET challenges/user', () => {
});
officialChallenge = await generateChallenge(user, group, {
official: true,
categories: [{
name: 'habitica_official',
slug: 'habitica_official',
}],
});
challenge = await generateChallenge(user, group);