feature: Enhance output options with Google Sheets integration and improve Excel writer functionality

This commit is contained in:
Keith Solomon
2026-05-17 12:05:42 -05:00
parent 379526114c
commit a7cdcf95ae
10 changed files with 375 additions and 14 deletions
+25
View File
@@ -1,4 +1,5 @@
import { describe, expect, it } from 'vitest';
import { genericParser } from '../src/parsing/generic.js';
import { selectParser } from '../src/parsing/plugins.js';
describe('parser plugin selection', () => {
@@ -11,3 +12,27 @@ describe('parser plugin selection', () => {
).toBe('generic');
});
});
describe('generic parser', () => {
it('keeps descriptions local to each link when many links share a container', () => {
const links = genericParser.parse({
html: `
<div>
<h2>CSS & HTML Tools</h2>
<a href="https://cascade.example">Cascade</a> - CSS property icons.
<a href="https://frames.example">Fancy Frames</a> - Decorative border generator.
SPONSORED
<a href="https://flexboxle.example">flexboxle</a> - A daily puzzle game to master CSS Flexbox.
<a href="https://types.example">Typescale AI</a> - A typescale generator.
</div>
`
});
expect(links.map((link) => link.description)).toEqual([
'Cascade - CSS property icons.',
'Fancy Frames - Decorative border generator.',
'SPONSORED flexboxle - A daily puzzle game to master CSS Flexbox.',
'Typescale AI - A typescale generator.'
]);
});
});