yamadapc / jsdoctest

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

Add support for multiline results #35 #37

Open Eoksni opened 5 years ago

Eoksni commented 5 years ago

Closes #35.

Example usage:

/**
 * @example
 *   subtract(1, 2)
 *   // => {
 *   // =>   normal: -1,
 *   // =>   reverse: 1
 *   // => }
 */

 function subtract(x, y) {
  return {
    normal: x - y,
    reverse: y - x
  };
}
coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 76.963% when pulling 2b57ab9af0249094ead35ab3daafc1b1315c0943 on Eoksni:develop into ccd6cdbff8a4db98d20da8ac1868558a45913005 on yamadapc:master.