title: Jest unit testing
body: <p>I am using Jest for writing coded unit test for my project, In one of the code the lambda function is inside the try and catch block like</p>
  
  <pre><code>   try {
      "use strict";
      const somevalue = require("./somefile")
  
      export.somefunction = ((event,context,()=&gt;{
  
      return something
  
      }).catch((error)=&gt;{
  
        return error
      }
  
      }
      catch(exception){
      console.log(exception)
      }
  </code></pre>
  
  <p>I want to understand two things
  a) What purpose does writing lambda function inside the try/catch block do, 
     considering the lambda exception is handled
  b) Second how write the jest coded unit test case for try/catch block</p>