Code coverage report for es6/unmarshalJson.js

Statements: 100% (9 / 9)      Branches: 100% (4 / 4)      Functions: 100% (2 / 2)      Lines: 100% (3 / 3)      Ignored: 1 branch     

All files » es6/ » unmarshalJson.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                  1 1        
import unmarshalItem from './unmarshalItem';
 
/**
 * Translates a DynamoDb formatted object, into a normally formatted object
 * represented as a JSON string.
 *
 * @param {Object} item DynamoDb formatted object.
 * @returns {String} JSON representation of a javascript object.
 */
function unmarshalJson(item) {
  return JSON.stringify(unmarshalItem(item));
}
 
export default unmarshalJson;