UNPKG

condensation

Version:

Package, reuse and share particles for CloudFormation projects

12 lines (8 loc) 399 B
var objectify = require('../../../lib/condensation/template-helpers/objectify'), assert = require('assert'); describe('objectify', function() { it('should work with multiple parameters', function() { var string = objectify({hash:{Param1: "Value2", Param2: '{"Ref": "Parameter1"}'}}); assert.deepEqual(JSON.parse(string),{"Param1": "Value2", "Param2": {"Ref": "Parameter1"}}); }); });