yamadapc / jsdoctest

Run jsdoc examples as doctests.
https://yamadapc.github.io/jsdoctest
MIT License
92 stars 9 forks source link

Feature Request: Way to use expect, should, and assert #18

Closed reggi closed 7 years ago

reggi commented 8 years ago

I think that ultimately when it comes to a more specific test it might be ideal to trigger a comment flag to use chai outright.

@example
somefunction()
// chai => expect.to.have.property("hello")

or

@example
// it => should have property hello
var x = somefunction()
expect(x).to.have.property("hello")
yamadapc commented 7 years ago

ATM the planned way is to have them in scope or not use them.