mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 05:07:22 +01:00
tests(api): Add ApiChallenge class
This commit is contained in:
@@ -61,6 +61,14 @@ export class ApiGroup extends ApiObject {
|
||||
}
|
||||
}
|
||||
|
||||
export class ApiChallenge extends ApiObject {
|
||||
constructor (options) {
|
||||
super(options);
|
||||
|
||||
this._docType = 'challenges';
|
||||
}
|
||||
}
|
||||
|
||||
function _updateLocalParameters (doc, update) {
|
||||
each(update, (value, param) => {
|
||||
set(doc, param, value);
|
||||
|
||||
Reference in New Issue
Block a user