#condensation-particle-tests Utilities to test condensation particles
var CondensationTests = require("condensation-particle-tests");
var cTests = new CondensationTests();
cTests.testParticle(
"parameter",
"base",
require('./fixtures/parameter_base_output_1'),
{logicalId: "BaseParameter"}
);
@param {Object}
[options] test configuration
@param {Object}
[options.condensation] Condensation object to use for tests.
Compile and execute handlebars processing for a given particle
@param {String}
particleType Name of the particle type
@param {String}
particlePath Relative path to the particle
@param {Object}
fixture A fixtue to compare the processed output to
@param {Object}
[options] processing configuration
@param {Object}
[options.logicalId] the Logical ID for the particle
@param {Object}
[options.hArgs] Handlebars arguments to use for processing the particle
@param {Boolean}
[options.validateJson=true] Whether to valide the output as valid JSON
@param {String}
[options.assertType] How to assert against the fixture. If options.validateJson is true then assertType will be deepEqual. If false then equal
@return {String}
The processed particle
This project is maintained by the Labs team at Sungard Availability Services
GitHub: https://sungardas.github.io