Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

issue-112.spec.js 477B

1234567891011121314151617181920
  1. const { parse, inspect } = require('../../lib/index.cjs');
  2. const source = `
  3. /**
  4. * @param {Function} [processor=data => data] A function to run
  5. */`;
  6. test('default', () => {
  7. const parsed = parse(source);
  8. // console.log(inspect(parsed[0]));
  9. expect(parsed[0].problems).toEqual([]);
  10. expect(parsed[0].tags[0]).toMatchObject({
  11. name: 'processor',
  12. default: 'data => data',
  13. optional: true,
  14. description: 'A function to run',
  15. problems: [],
  16. });
  17. });