1

How to unit test a function that does not return anything using jasmine.


Below is my sample function

    function fixRightRefinementpanel() {
    var refinementWidth = (($(".navmenu").width() * 0.25) - 15);
    $(".refinement-section-right").css("position", "fixed").css("width", refinementWidth);
}
4
  • i could not find a tag for jasmine Commented May 12, 2017 at 6:00
  • There is not a Jasmine tag for a reason, this is a SharePoint board. Go ask your question in the proper place Commented May 12, 2017 at 7:22
  • i have used jasmine to test my client side code JavaScript which i am using in SharePoint. Commented May 12, 2017 at 9:13
  • Your question has nothing to do with SharePoint technology. The global StackOverflow has a jasmine tag: stackoverflow.com/questions/tagged/jasmine You are much more likely to get answers there; actually if you search void function there, you get 56 answers Commented May 12, 2017 at 9:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.