Skip to content

Latest commit

 

History

History
115 lines (115 loc) · 2.08 KB

docs.md

File metadata and controls

115 lines (115 loc) · 2.08 KB

Assert.ValidJSON ( TEST_Result)

/**
 *
 * Performs an assertion
 *
 * @param {object} TEST_Result the result of the test
 * 
 *
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert.NotAnError ( TEST_Result)

/**
 *
 * Performs an assertion
 *
 * @param {object} TEST_Result the result of the test
 * 
 *
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert.JSONPathEquals ( TEST_Result;path;expected)

/**
 *
 * Performs an assertion
 *
 * @param {object} TEST_Result the result of the test
 * @param {string} path the to test
 * @param {string} expected result
 * 
 *
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert.HasProperty ( TEST_Result;Property)

/**
 *
 * Performs an assertion
 *
 * @param {object} TEST_Result the result of the test
 * @param {string} Property to test
 * 
 *
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert.Error ( TEST_Result)

/**
 *
 * Performs an assertion
 *
 * @param {object} TEST_Result the result of the test
 * 
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert.Equals ( Expected;Actual)

/**
 *
 * Performs an assertion
 *
 * @param {object} Expected
 * @param {object} Actual
 * 
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */

Assert._helper ( passed;testinfo)

/**
 *
 * Performs an assertion
 *
 * @param {object} Expected
 * @param {object} Actual
 * 
 * @private
 * @module karbon-testing
 * @see https://github.com/karbonfm/karbon-testing
 *
 * @history 2017-06-01, [email protected], created
 *
 */