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-120.spec.js 728B

1234567891011121314151617181920212223242526272829
  1. const {
  2. parse,
  3. stringify,
  4. transforms: { align },
  5. } = require('../../lib/index.cjs');
  6. test('align - collapse postDelim', () => {
  7. const source = `
  8. /**
  9. * Description may go
  10. * over multiple lines followed by @tags
  11. * @param {string} name the name parameter
  12. * @param {any} value the value parameter
  13. */`.slice(1);
  14. const expected = `
  15. /**
  16. * Description may go
  17. * over multiple lines followed by @tags
  18. * @param {string} name the name parameter
  19. * @param {any} value the value parameter
  20. */`.slice(1);
  21. const parsed = parse(source);
  22. const aligned = align()(parsed[0]);
  23. const stringified = stringify(aligned);
  24. expect(stringified).toEqual(expected);
  25. });