Posts in 2022

  • Arrow Function

    Wednesday, December 07, 2022 in NodeJS

    Arrow functions are really helpful when you want create reusable one liner function. e.g. let us assume you want to add two numbers, then you would normally create a function as follows function add(a, b) { return a + b } instead of this we can …

    Read more

Posts in 2021

Posts in 2019

  • NodeJS - Unit Test DynamoDB

    Friday, May 10, 2019 in NodeJS

    Introduction This page explains how to mock dynamodb client using Sinon and Proxyqurie Required dependencies Install the following dependencies npm install --save-dev sinon npm install --save-dev proxyquire Sample Project Setup a sample project # …

    Read more