Using Ext Spec with Jasmine
Spy Helpers
Jasmine Matchers
To make use of Ext Spec's Jasmine matchers, add the following to a test suite:
beforeEach(function () {
this.addMatchers(ExtSpec.Jasmine.Matchers);
});
General Matchers
toHaveBeenCalledWithConfig
Passes if any call to spy
x had a first argument with the keys and values found in object
y.
expect(x).toHaveBeenCalledWithConfig(y);
Passes if any call to spy
x had argument index
z with the keys and values found in object
y.
expect(x).toHaveBeenCalledWithConfig(y, z);