Sinon.JSã¨ã¯ãã¹ã¿ããã¢ãã¯ãªã©ã®å®è£ ã«å½¹ç«ã¤JavaScriptã®ã©ã¤ãã©ãªã§ããã¹ã¿ããå®è£ ããããã®é¢æ°ãå å®ãã¦ãã¦ãæ £ããã¨ãã¹ãããµã¯ãµã¯é²ããããã¨æãã¾ãããã®Sinon.JSã使ã£ã¦ä¸è¨ã®ãããªé¢æ°ã®ã¹ã¿ããå®è£ ãã¾ãããå®è£ ã§ããã©ããã®æ¤è¨¼ã¯QUnitã§èª¿ã¹ã¾ããã (1) æ»ãå¤ããã®é¢æ° (2) å¼æ°ãã³ã¼ã«ããã¯ã®é¢æ° (3) å¥ã®é¢æ°ãå¿çã¨ãªãé¢æ° é¢é£è¨äºï¼ QUnitãç¨ããåä½ãã¹ãã®å®è£ ä¾ å°å ¥ ä¸è¨ã®Sinon.JSå ¬å¼ãã¼ã¸ããããsinon-1.9.0.jsãããã¦ãã¼ããã¾ãã http://sinonjs.org/ ãã©ã«ãæ§æã¯ä¸è¨ã®ããã«ãã¾ããããfuga.jsãã¯ãã¹ã対象ã®é¢æ°ãè¨è¿°ãããsinon-stub-test.jsãã«ãã¹ãã³ã¼ãã®ãµã³ãã«ãè¨è¿°ãã¾ãããsinon-stub-test.htmlãã¯ã¹ã¿ãã®æ¤è¨¼çµ
{{#tags}}- {{label}}
{{/tags}}