Inject custom assertions to types.js by publishing assert in types.js
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.9k
- Forks
- 359
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.