Category: Javascript

  • Testing Public and Private Functions in JavaScript using Jasmine and Chutzpah

    Testing Public and Private Functions in JavaScript using Jasmine and Chutzpah

    Introduction There is a big debate among the online community about how to test private functions in a module when we have only access to public functions from it. This article explains about JavaScript testing using module pattern approach. It is useful if you want to test private functions. Using the Code Basically, this article has three sections, HTML, JavaScript and…