source: trip-planner-front/node_modules/minimalistic-assert/index.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 252 bytes
Line 
1module.exports = assert;
2
3function assert(val, msg) {
4 if (!val)
5 throw new Error(msg || 'Assertion failed');
6}
7
8assert.equal = function assertEqual(l, r, msg) {
9 if (l != r)
10 throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
11};
Note: See TracBrowser for help on using the repository browser.