3 ms·
i'm working on a project that does this with doc comments. Basically you add a doc block like this: ### @it should return true expect(foo()).to.b
by phpnode 14y ago
i'm working on a project that does this with doc comments. Basically you add a doc block like this:
###
@it should return true
expect(foo()).to.be.true
###
foo = -> true
and the preprocessor extracts the test from the comment and associates it with the foo declaration.