General Spy Helpers

Helpers

createSpyObject

Creates and returns a spy object using configuration x.
ExtSpec.Jasmine.createSpyObject(x);

createFluentSpyObject

Creates and returns an object with base name x whose spies y are preconfigured to return itself.
ExtSpec.Jasmine.createFluentSpyObject(x, y);

spyOnObject

Creates spies on target object x using configuration y.
ExtSpec.Jasmine.spyOnObject(x, y);

spyOnNamespace

Creates spies on target namespace x using configuration y.
ExtSpec.Jasmine.spyOnNamespace(x, y);

getSpyReturn

Gets the return value of spy chain y from object x.
ExtSpec.Jasmine.getSpyReturn(x, y);

Last edited May 3, 2013 at 10:15 AM by Qube, version 2

Comments

No comments yet.