Verify that the value is not truthy
Verify that the value is not truthy
Verify that the value is not truthy
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value does NOT match the pattern provided.
Verify that the values are not equal
Verify that the value does NOT match the pattern provided.
Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.
Verify that the values are not equal
Verify that the values are not equal
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.
Verify that the values are equal
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not truthy
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the values are equal
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Assert that an error object is not provided.
Like with @tapjs/asserts!index.Assertions#doesNotThrow, you can also usually just throw the error, and tap will handle that reasonably.
This is useful in cases where you just want to assert that a callback did not receive an error, without necessarily aborting the callback function entirely. Both the origin of the error and the location of the failed assertion will be printed in the test results.
It is also used internally in @tapjs/asserts!index.Assertions#resolves, @tapjs/asserts!index.Assertions#doesNotThrow, and @tapjs/asserts!index.Assertions#resolveMatch to show both the source of a raised error as well as the callsite where the assertion failed.
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the object has all of the properties and values in the pattern, matching loosely.
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the values are equal
Verify that the value is of the type specified Type can be either a string, or a constructor.
If a string, then it can match either the typeof
result
or 'null' for null
values, or the name
property of the
object's constructor.
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the values are equal
Verify that the value is loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value matches the pattern provided
Verify that the value is loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value matches the pattern provided
Verify that the values are equal
Verify that the values are equal
Verify that the value does NOT match the pattern provided.
Verify that the value is of the type specified Type can be either a string, or a constructor.
If a string, then it can match either the typeof
result
or 'null' for null
values, or the name
property of the
object's constructor.
Verify that the value is of the type specified Type can be either a string, or a constructor.
If a string, then it can match either the typeof
result
or 'null' for null
values, or the name
property of the
object's constructor.
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the values are equal
Verify that the values are equal
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value matches the pattern provided
Verify that the value matches the pattern provided
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value matches the pattern provided
Verify that the value matches the pattern provided
Verify that the values are equal
Verify that the values are equal
Verify that the values are equal
Verify that the values are equal
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value matches the pattern provided
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value matches the pattern provided
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value is not truthy
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value does NOT match the pattern provided.
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not strictly equivalent to the supplied pattern object
Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are not equal
Verify that the values are not equal
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value does NOT match the pattern provided.
Verify that the value is not truthy
Verify that the value is not loosely equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Verify that the values are not equal
Verify that the values are not equal
Verify that the values are not equal
Verify that the values are not equal
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.
Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value matches the pattern provided
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are equal
Verify that the values are equal
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are equal
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are equal
Verify that the values are equal
Verify that the values are equal
Verify that the values are equal
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is strictly equivalent to the supplied pattern
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the values are equal
Verify that the values are equal
Verify that the value is not strictly equivalent to the supplied pattern object
Verify that the value is strictly equivalent to the supplied pattern
Verify that the function throws an error.
Thrown error is tested against the wanted
param if provided, using
t.match()
.
Returns false on failure, or the error object thrown on success
Verify that the value is truthy
Verify that the value does NOT match the pattern provided.
Verify that the value does NOT match the pattern provided.
Explicitly mark the test as completed, outputting the TAP plan line if needed.
This is not required to be called if the test function returns a promise, or if a plan is explicitly declared and eventually fulfilled.
Optional
implicit: typeof IMPLICIT
Verify that the value is truthy