jem.js icon indicating copy to clipboard operation
jem.js copied to clipboard

Should have node-style tests

Open sildur opened this issue 7 years ago • 3 comments

The code should have tests. A popular choice is mocha with chai.

sildur avatar Aug 04 '16 14:08 sildur

Another choice is to use tape that is minimalist and allows you to test both in node and in the browser.

eloyesp avatar Aug 05 '16 15:08 eloyesp

Why add dependencies and complexity to 255 lines of cleanly written Js?

MoreOutput avatar Sep 07 '16 15:09 MoreOutput

Because they'll eventually be more lines… if @HernanRivasAcosta (of someone else) eventually decides to start adding new functionality to the library. In any case, the dependencies should only affect tests. For production use, they should not be there.

elbrujohalcon avatar Sep 07 '16 16:09 elbrujohalcon