Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
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
Is this value a JS SharedArrayBuffer?
Which kind of boxed JS primitive is this?
Is this value a JS ArrayBuffer?
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.
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Is this specifier a node.js core module?
`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
ES Object-related atoms: Object, ToObject, RequireObjectCoercible
Give a regex, get a robust predicate function that tests it against a string.
The URI implementation that is used by VS Code and its extensions
Assertions that run multiple times for testing functions with large domains
minitest provides a complete suite of testing facilities supporting TDD, BDD, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Kirk Haines and I were paired up and we cracked open the code for a few test frameworks... I MUST say that minitest is *very* readable / understandable compared to the 'other two' options we looked at. Nicely done and thank you for helping us keep our mental sanity." -- Wayne E. Seguin minitest/test is a small and incredibly fast unit testing framework. It provides a rich set of assertions to make your tests clean and readable. minitest/spec is a functionally complete spec engine. It hooks onto minitest/test and seamlessly bridges test assertions over to spec expectations. minitest/benchmark is an awesome way to assert the performance of your algorithms in a repeatable manner. Now you can assert that your newb co-worker doesn't replace your linear algorithm with an exponential one! minitest/pride shows pride in testing and adds coloring to your test output. I guess it is an example of how to write IO pipes too. :P minitest/test is meant to have a clean implementation for language implementors that need a minimal set of methods to bootstrap a working test suite. For example, there is no magic involved for test-case discovery. "Again, I can't praise enough the idea of a testing/specing framework that I can actually read in full in one sitting!" -- Piotr Szotkowski Comparing to rspec: rspec is a testing DSL. minitest is ruby. -- Adam Hawkins, "Bow Before MiniTest" minitest doesn't reinvent anything that ruby already provides, like: classes, modules, inheritance, methods. This means you only have to learn ruby to use minitest and all of your regular OO practices like extract-method refactorings still apply. == Features/Problems: * minitest/autorun - the easy and explicit way to run all your tests. * minitest/test - a very fast, simple, and clean test system. * minitest/spec - a very fast, simple, and clean spec system. * minitest/benchmark - an awesome way to assert your algorithm's performance. * minitest/pride - show your pride in testing! * minitest/test_task - a full-featured and clean rake task generator. * Incredibly small and fast runner, but no bells and whistles. * Written by squishy human beings. Software can never be perfect. We will all eventually die.