UNPKG

@hazae41/phobos

Version:

Modern and minimalist testing library for the web

17 lines (13 loc) 381 B
'use strict'; var error = require('./error.cjs'); /** * Just an assert function * @param condition should be true * @param message message to throw if condition is false */ function assert(condition, message = "Expected condition to be true") { if (!condition) throw new error.AssertError(message); } exports.assert = assert; //# sourceMappingURL=assert.cjs.map