mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
cannot spy on an undefined function
This commit is contained in:
@@ -8,7 +8,8 @@ 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: function() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
sandbox.spy(User, "set");
|
sandbox.spy(User, "set");
|
||||||
|
|||||||
Reference in New Issue
Block a user