import { describe, expect, it } from 'vitest';
import { applyCountTemplate, applyFeedTemplate } from './phase5.js';

describe('phase5 helpers', () => {
  it('applies count template', () => {
    expect(applyCountTemplate('Members: {count}', 42)).toBe('Members: 42');
  });

  it('applies feed template', () => {
    expect(applyFeedTemplate('{title} - {url}', { title: 'Hi', url: 'https://x.test' })).toBe(
      'Hi - https://x.test'
    );
  });
});
