Assert-exception --- <p align="right"> <a href="https://www.npmjs.com/package/assert-exception"> <img alt="Npm version" src="https://badge.fury.io/js/assert-exception.svg"> </a> <a href="https://travis-ci.org/59naga/assert-exception"> <img a
Utility to create custom exceptions
The assert module from Node.js, for the browser.
minimalistic-assert ===
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
Synchronous validation of a path existing either as a file or as a directory.
correct invalid SPDX expressions
assert with status codes
A robust, ES3 compatible, "has own property" predicate.
Extra assertions on top of node's assert module
The node.js assert module, re-packaged for web browsers.
Is this value a JS SharedArrayBuffer?
Is this value a JS ArrayBuffer?
Node.js 18's node:test, as an npm package
Which kind of boxed JS primitive is this?
What is the type of this builtin JS value?
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Is this specifier a node.js core module?
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
`Object.defineProperty`, but not IE 8's broken one.
Robustly get the length of a Typed Array
A helper to optimistically set Symbol.toStringTag, when possible.
Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Assay defines assertions in the same way that Ruby defines exceptions. Each type of asserition, called an assay, is then a child of the base Assertion class, which itself is a subclass of the Exception class.
This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (assert_greater_than, assert_less_than_or_equal_to, etc.). Shorter aliases also are provided for these (assert_gt, assert_le, etc.). * An assertion that verifies that a given block raises a specified exception with a specified message (assert_raise_message). This allows full testing of error messages. * An assertion that verifies that a given block contains an assertion that fails (assert_fail), which can be used to test new assertions.
Provides `ActiveRecord::Relation#one!`, a convenience method that asserts a relation contains exactly one record and returns it. If there are no records or more than one, an `ActiveRecord::NoRecordFound` or `ActiveRecord::MultipleRecordsFound` exception is raised, respectively.
An amazingly simple way to test & debug with assertions -- right in your code! Allows you to test inline without writing any seperate unit tests as everything is mixed into pour code. This helps ensure, for web apps like Rails, that if something has gone wrong that shouldn't it gets reported in your logs without having to worry about exception raising and rescuing. Want a unit testing library? This small library can get you started in the right direction!
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.