I've just started using Jasmine so please forgive the newbie question but is it possible to test for object types when using toHaveBeenCalledWith
?
expect(object.method).toHaveBeenCalledWith(instanceof String);
I know I could this but it's checking the return value rather than the argument.
expect(k instanceof namespace.Klass).toBeTruthy();