condensation-particle-tests
v0.5.4
Published
Tests for condensation particles
Downloads
22
Readme
#condensation-particle-tests Utilities to test condensation particles
Use
var CondensationTests = require("condensation-particle-tests");
var cTests = new CondensationTests();
cTests.testParticle(
"parameter",
"base",
require('./fixtures/parameter_base_output_1'),
{logicalId: "BaseParameter"}
);
Constructor
@param {Object}
[options] test configuration
@param {Object}
[options.condensation] Condensation object to use for tests.
testParticle
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
Sungard Availability Services | Labs
This project is maintained by the Labs team at Sungard Availability Services
GitHub: https://sungardas.github.io