static shouldBeFalsy(context)

Equivalent to 'shouldBeFalsey'. Validate that the value resolves to falsey using Chai.js (to.not.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