mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Add next generator for easier controller testing.
This commit is contained in:
@@ -39,3 +39,7 @@ export function generateReq(options={}) {
|
||||
|
||||
return defaults(options, defaultReq);
|
||||
}
|
||||
|
||||
export function generateNext(func) {
|
||||
return func || sandbox.stub();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user