mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Merge branch 'develop' into party-chat-translations
# Conflicts: # website/server/controllers/api-v3/quests.js # website/server/controllers/api-v3/tasks/groups.js # website/server/controllers/api-v3/user/spells.js # website/server/models/group.js
This commit is contained in:
@@ -55,10 +55,15 @@ export function generateReq (options = {}) {
|
||||
body: {},
|
||||
query: {},
|
||||
headers: {},
|
||||
header: sandbox.stub().returns(null),
|
||||
header (header) {
|
||||
return this.headers[header];
|
||||
},
|
||||
session: {},
|
||||
};
|
||||
|
||||
return defaultsDeep(options, defaultReq);
|
||||
const req = defaultsDeep(options, defaultReq);
|
||||
|
||||
return req;
|
||||
}
|
||||
|
||||
export function generateNext (func) {
|
||||
|
||||
Reference in New Issue
Block a user