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-113.spec.js 550B

1234567891011121314151617181920212223
  1. const { parse, inspect } = require('../../lib/index.cjs');
  2. const source = `
  3. /** Multi-line typedef for an options object type.
  4. *
  5. * @typedef {{
  6. * prop: number
  7. * }} MyOptions description text
  8. */`;
  9. test('name after multiline tag', () => {
  10. const parsed = parse(source);
  11. // console.log(inspect(parsed[0]));
  12. expect(parsed[0].problems).toEqual([]);
  13. expect(parsed[0].tags[0]).toMatchObject({
  14. tag: 'typedef',
  15. name: 'MyOptions',
  16. type: '{prop: number}',
  17. description: 'description text',
  18. problems: [],
  19. });
  20. });