caolan / caolan/nodeunit

Inject custom assertions to types.js by publishing assert in types.js

Open
#211 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

I would like to add custom assertion so it can be used similarly to test.equal (e.g. test.contains).

The issue is that assert is required in two places:
In nodeunit.js, and in types.js.

The assert in nodeunit is exported, the one in type is not.
If this could be exposed then it would be very easy to add a custom assert and let the mechanism add them to test with the necessary wrapAssert.
Without it, it's still possible to use custom assert but cannot add them to the test level.

Thanks.

Ronnen

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.