static shouldBeTruthy(context)

Synonymous with shouldBeTruthy, but with different definition. Validate that the value resolves to truthy using Chai.js (to.be.ok.

  • context {Object} - A context object holding 2 main parameters: value and message. Also holds configuration params.
  • context.value {Object} - The value for comparison. If this value is truthy then the test will pass.
  • [context.message] {String} - The message added to the Errr if the comparison fails.
  • [context.noDebug] {Boolean} - If set to true, Maddox will not append debug info in the stacktrace. Defaults to false.
  • returns nothing