condensation-particle-tests

0.5.4 • Public • Published

condensation-particle-tests

Utilities to test condensation particles

condensation

NPM Gitter Code Climate Dependency Status

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

Sungard Availability Services | Labs

This project is maintained by the Labs team at Sungard Availability Services

GitHub: https://sungardas.github.io

Blog: http://blog.sungardas.com/CTOLabs/

Readme

Keywords

Package Sidebar

Install

npm i condensation-particle-tests

Weekly Downloads

36

Version

0.5.4

License

Apache-2.0

Last publish

Collaborators

  • kmcgrath
  • sungardas