Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unit test for dynamodb query is a function

...

function query() {
        return dynamo.query(this.params, function(err, data){            
            if(err){            
                return err.stack;            
            }else{
                console.log("Query Succeeded");            
                return data.item;
            }
        }).Promise();
...
Source by www.linkedin.com #
 
PREVIOUS NEXT
Tagged: #unit #test #dynamodb #query #function
ADD COMMENT
Topic
Name
5+8 =