0.5.4 • Published 7 years ago

condensation-particle-tests v0.5.4

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

#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/

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0-rc4

8 years ago

0.4.0-rc3

8 years ago

0.4.0-rc2

8 years ago

0.4.0-rc1

8 years ago

0.4.0-rc0

8 years ago