mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +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 = {
|
||||
user: user,
|
||||
sync: sandbox.spy
|
||||
sync: sandbox.spy,
|
||||
set: function() {}
|
||||
}
|
||||
|
||||
sandbox.spy(User, "set");
|
||||
|
||||
Reference in New Issue
Block a user