You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
== 1.4.0 / 2012-07-09 * Argument matchers (Maximillian Antoni) sinon.match.{any, same, typeOf, instanceOf, has, hasOwn, defined, truthy, falsy} as well as typeOf shortcuts for boolean, number, string, object, function, array, regexp and date. The result of a call can be used with spy.calledWith. * spy.returned now works with matchers and compares objects deeply. * Matcher assertions: calledWithMat
This is the first bold step towards getting rid of all kinds of annoying packaging troubles with Sinon.JS. This allows the source code to be developed as a regular node.js module, and eventually package everything up in a umd-style wrapper for the browser using browserify. In this first step there are several things that need attention: 1. I have not attempted to run this in a browser, or even bui
â [JavaScript][Sinon.JS]Sinon.JSã®stubã«ã¤ã㦠Sinonã®stubã«é¢ããããã¥ã¡ã³ãã¯ããã§ãã ããããstubã¨ã¯ Test stubs are functions (spies) with pre-programmed behavior. They support the full test spy API in addition to methods which can be used to alter the stub's behavior. As spies, stubs can be either anonymous, or wrap existing functions. When wrapping an existing function with a stub, the original function is not calle
ã¢ã¸ã¥ã¼ã«ã®ãã¼ãã¾ãã lib/sinon.js ãã¢ã¸ã¥ã¼ã«ã®ã¨ã³ããã¤ã³ã sinon object ã®ä½æãç°å¢ã«å¿ããåæåãã¦ã¼ãã£ãªãã£ã¡ã½ããã®å®ç¾©ãè¡ã spy ã mock ãªã©ã®æ©è½æ¯ã«ãã¡ã¤ã«ãåããã lib/sinon/*.js ã«é ç½® lib/sinon/spy.js ãªã© sinon.js 大ããã¯ä»¥ä¸ã®ããã« sinon object ãä½ã£ã¦è¿ãã var sinon = (function() { function somePrivateFunction() {}; var sinon = { foo: function foo() {} }; return sinon; }()); node ã®å ´åããã©ã¦ã¶ã®å ´åãbusterjs ã®å ´åã§ç°ãªã£ãåæåãè¡ãã node ã®ç°å¢ãã©ããã®å¤å®ã¯ module.exports ã®æç¡ã§è¡ãã var
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}