This module is in a pre-alpha state, but I've implemented support for arrays. I expect to have this finished in the next couple weeks. I'm submitting my CLA so I can get it on the CDN.
This requires that the first argument to myMock.foo is an array with length 3 or greater.
YUI().use('gallery-mock-value-extras', function(Y) {
Y.Mock.expect(myMock, {
method: "foo",
args: [Y.Mock.Value.ArraySpec({ minLength: 3 })]
});
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info