fix(view): fixed hydrator to pass the right element index when attaching an event listener
This commit is contained in:
@ -80,6 +80,13 @@ export function main() {
|
||||
expect(spyObj.spy("someFunc")).toHaveBeenCalledWith(1,2);
|
||||
});
|
||||
|
||||
it("should support stubs", () => {
|
||||
var s = SpyObject.stub({"a":1}, {"b":2});
|
||||
|
||||
expect(s.a()).toEqual(1);
|
||||
expect(s.b()).toEqual(2);
|
||||
});
|
||||
|
||||
it('should create spys for all methods', () => {
|
||||
expect(() => spyObj.someFunc()).not.toThrow();
|
||||
});
|
||||
|
Reference in New Issue
Block a user