Sha256: c62009724a28986193befd6b7746ea8f8a96fef1ac64df78fe3e4b05a8ffeeb2

Contents?: true

Size: 252 Bytes

Versions: 43

Compression:

Stored size: 252 Bytes

Contents

module.exports = assert;

function assert(val, msg) {
  if (!val)
    throw new Error(msg || 'Assertion failed');
}

assert.equal = function assertEqual(l, r, msg) {
  if (l != r)
    throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
};

Version data entries

43 entries across 42 versions & 15 rubygems

Version Path
ilog-0.4.0 node_modules/minimalistic-assert/index.js
ilog-0.3.3 node_modules/minimalistic-assert/index.js
jester-data-8.0.0 node_modules/minimalistic-assert/index.js
ezii-os-5.2.1 node_modules/minimalistic-assert/index.js
ezii-os-2.0.1 node_modules/minimalistic-assert/index.js
ezii-os-1.1.0 node_modules/minimalistic-assert/index.js
ezii-os-1.0.0 node_modules/minimalistic-assert/index.js
ezii-os-0.0.0.1.0 node_modules/minimalistic-assert/index.js
ezii-os-0.0.0.0.1 node_modules/minimalistic-assert/index.js
optimacms-0.4.3 spec/dummy/node_modules/minimalistic-assert/index.js
optimacms-0.4.2 spec/dummy/node_modules/minimalistic-assert/index.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/minimalistic-assert/index.js
locomotivecms-3.4.0 app/javascript/node_modules/minimalistic-assert/index.js
cortex-0.1.3 spec/dummy/node_modules/minimalistic-assert/index.js
dragonfly_puppeteer-0.1.0 node_modules/minimalistic-assert/index.js
lanes-0.8.0 node_modules/minimalistic-assert/index.js
minimum_viable_product-0.0.11 test/dummy/node_modules/minimalistic-assert/index.js
brwy_rails-0.0.6 test/dummy/node_modules/minimalistic-assert/index.js
brwy_rails-0.0.5 test/dummy/node_modules/minimalistic-assert/index.js
brwy_rails-0.0.4 test/dummy/node_modules/minimalistic-assert/index.js