mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix spy?
This commit is contained in:
@@ -8,10 +8,11 @@ describe("Party Controller", function() {
|
|||||||
user._id = "unique-user-id";
|
user._id = "unique-user-id";
|
||||||
User = {
|
User = {
|
||||||
user: user,
|
user: user,
|
||||||
sync: sandbox.spy,
|
sync: sandbox.spy
|
||||||
set: sandbox.spy
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sandbox.spy(User, "set");
|
||||||
|
|
||||||
module(function($provide) {
|
module(function($provide) {
|
||||||
$provide.value('User', User);
|
$provide.value('User', User);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user