cannot spy on an undefined function

This commit is contained in:
Kaitlin Hipkin
2016-03-15 19:48:23 -04:00
parent c0e636dba0
commit 68c3c2973b

View File

@@ -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");