I am looking to test that a spy'ed object's method, modifies that object's properties properly. When doing this, I find that any reference to the spy'ed object's properties return 'undefined'. Not sure if I am doing this correctly, if it is a bug, or if it is not possible for some reason... here is a sample of what I am trying to do. The asserts on the object property never pass as the property is always undefined...
I am looking to test that a spy'ed object's method, modifies that object's properties properly. When doing this, I find that any reference to the spy'ed object's properties return 'undefined'. Not sure if I am doing this correctly, if it is a bug, or if it is not possible for some reason... here is a sample of what I am trying to do. The asserts on the object property never pass as the property is always undefined...
I am using QUnit for my unit tests.