Inject custom assertions to types.js by publishing assert in types.js
Aperta
- Lingua principale
- JavaScript
- Stelle
- 1.9k
- Fork
- 359
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.