feature: First push to git

This commit is contained in:
Keith Solomon
2026-05-16 14:02:49 -05:00
commit 265f69d95a
46 changed files with 11551 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { describe, expect, it } from 'vitest';
import { Categorizer } from '../src/categorization/categorizer.js';
describe('categorization', () => {
it('prefers newsletter section headers', async () => {
const categorizer = new Categorizer();
await expect(
categorizer.categorize({ title: 'Anything', url: 'https://x.test', section: 'Rust' })
).resolves.toBe('Rust');
});
it('falls back to URL and keyword rules', async () => {
const categorizer = new Categorizer();
await expect(
categorizer.categorize({ title: 'Kubernetes security guide', url: 'https://example.com/k8s' })
).resolves.toBe('DevOps');
});
});