mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Instead, have them request services that return them so tests don’t need to prepare special state.
16 lines
282 B
JavaScript
16 lines
282 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Services that expose habitrpg-shared
|
|
*/
|
|
|
|
angular.module('sharedServices', []).
|
|
factory('Shared', [function () {
|
|
return window.habitrpgShared;
|
|
}
|
|
]).
|
|
factory('Content', ['Shared', function (Shared) {
|
|
return Shared.content;
|
|
}
|
|
]);
|