{"version":3,"sources":["../../src/sections/authors.test.ts"],"sourcesContent":["import { authorsSection } from './authors.js';\n\ndescribe('Authors', () => {\n  it('should return title only when no items are added', () => {\n    const section = authorsSection();\n    expect(section.synthesize()).toBe('## Authors\\n\\n');\n  });\n\n  it('should return correct syntax when one item is added', () => {\n    const section = authorsSection().add({ githubUsername: 'JaneDoe' });\n    expect(section.synthesize()).toBe(\n      ['## Authors', '', '- [@JaneDoe](https://www.github.com/JaneDoe)'].join(\n        '\\n',\n      ),\n    );\n  });\n\n  it('should return correct syntax when multiple items are added', () => {\n    const section = authorsSection()\n      .add({ githubUsername: 'JaneDoe' })\n      .add({ githubUsername: 'JohnSmith' });\n    expect(section.synthesize()).toBe(\n      [\n        '## Authors',\n        '',\n        '- [@JaneDoe](https://www.github.com/JaneDoe)',\n        '',\n        '- [@JohnSmith](https://www.github.com/JohnSmith)',\n      ].join('\\n'),\n    );\n  });\n\n  it('should allow for custom titles', () => {\n    const section = authorsSection({ title: 'Custom Title' });\n    expect(section.synthesize()).toBe('## Custom Title\\n\\n');\n  });\n});\n"],"mappings":";AAAA,qBAA+B;AAE/B,SAAS,WAAW,MAAM;AACxB,KAAG,oDAAoD,MAAM;AAC3D,UAAM,cAAU,+BAAe;AAC/B,WAAO,QAAQ,WAAW,CAAC,EAAE,KAAK,gBAAgB;AAAA,EACpD,CAAC;AAED,KAAG,uDAAuD,MAAM;AAC9D,UAAM,cAAU,+BAAe,EAAE,IAAI,EAAE,gBAAgB,UAAU,CAAC;AAClE,WAAO,QAAQ,WAAW,CAAC,EAAE;AAAA,MAC3B,CAAC,cAAc,IAAI,8CAA8C,EAAE;AAAA,QACjE;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAED,KAAG,8DAA8D,MAAM;AACrE,UAAM,cAAU,+BAAe,EAC5B,IAAI,EAAE,gBAAgB,UAAU,CAAC,EACjC,IAAI,EAAE,gBAAgB,YAAY,CAAC;AACtC,WAAO,QAAQ,WAAW,CAAC,EAAE;AAAA,MAC3B;AAAA,QACE;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,EAAE,KAAK,IAAI;AAAA,IACb;AAAA,EACF,CAAC;AAED,KAAG,kCAAkC,MAAM;AACzC,UAAM,cAAU,+BAAe,EAAE,OAAO,eAAe,CAAC;AACxD,WAAO,QAAQ,WAAW,CAAC,EAAE,KAAK,qBAAqB;AAAA,EACzD,CAAC;AACH,CAAC;","names":[]}