Jasmineã§JavaScriptã®ãã¹ãæ¸ãããJava8ã®ã©ã ãã«æãã馳ãã¦ããããªãã¨ãªãæãã¤ãã¾ããã ã©ã ãã«ã¤ã³ã¹ã¿ã³ã¹ã¤ãã·ã£ã©ã¤ã¶ãçµã¿åãããããããªæãã§ãã¹ããæ¸ãããã§ãã package app; public class CalcSpec extends Specs {{ it("1 足ã 2 㯠3", () -> { expect(() -> 1 + 2).toEqual(3); }); it("1 å²ã 0 ã¯ä¾å¤", () -> { expect(() -> 1 / 0).toThrow(ArithmeticException.class); }); }} ãããJasmineã½ãã ã¾ãå®ã¯BDDã½ãã¨ãããåãã£ã¦ãã¾ãããã itã¡ã½ãããå¼ã¶ã¨ç¬¬ä¸å¼æ°ã®ãã¹ãåãkeyã第äºå¼æ°ã®Runnableã®ãããªãªãã¸ã§ã¯ããvalueã¨ããããã
{{#tags}}- {{label}}
{{/tags}}