結果 : how to write unit test in javascript