Front end of the Slack clone application.

index.js 252B

123456789101112
  1. module.exports = assert;
  2. function assert(val, msg) {
  3. if (!val)
  4. throw new Error(msg || 'Assertion failed');
  5. }
  6. assert.equal = function assertEqual(l, r, msg) {
  7. if (l != r)
  8. throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
  9. };