Module global

Functions available in global namespace (in addition to those made available by JavaScript).

Module Summary

Using debug

debug('this message is logged when line executed');
debug('cost = ' + FILLZ.ITEM.cost); //output cost value

Using assertEq

assertEq(1+1, 2); // check that math is still working
assertEq(FILLZ.venue, 'amazon'); // fail if the script is run on another venue besides Amazon

Methods

  • debug(msg)

    Outputs the provided message if debug level logging is enabled.

    Parameters

    • msg String -- Message to append to log
  • assertEq(got, expected)

    Throws exception if got != expected. Useful for testing and verification of assumptions in code.

    Parameters

    • got -- The value we got
    • expected -- The value we expected