Add automatic Threads link replies and sunrise preview card
This commit is contained in:
@@ -7,7 +7,8 @@ test('default post shows sunrise time rather than the five-minute-later capture
|
||||
const config = loadCaptions(new URL('../.threads-captions.sample.json', import.meta.url));
|
||||
const result = renderCaption(config, { weather: { ...sample, cloudCover: 90 }, capturedAt: '2026-11-01T21:58:00Z',
|
||||
sunrise: '2026-11-01T21:53:00Z', url: 'https://sunrise.horoli.kr', test: false });
|
||||
assert.equal(result.text, '오늘의 관악산 일출이에요\n2026.11.02 · 일출 06:53\n날씨: 흐림\nsunrise.horoli.kr');
|
||||
assert.equal(result.text, '오늘의 관악산 일출이에요\n2026.11.02 · 일출 06:53\n날씨: 흐림');
|
||||
assert.equal(result.replyText, '관악산 일출 보러 가기\nhttps://sunrise.horoli.kr');
|
||||
});
|
||||
test('caption weather uses precipitation first and does not assume missing data means clear', () => {
|
||||
const config = loadCaptions();
|
||||
|
||||
Reference in New Issue
Block a user