feat: include calendar last modified timestamp

This commit is contained in:
2026-09-06 16:39:53 +03:00
parent 87cbab934b
commit b5548008b6
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -64,6 +64,7 @@ test('ICS exposes a stable event version for calendar updates',()=>{
const first=createTenderICS({...t,documentVersion:3},new Date('2026-09-01T00:00:00Z'));
const changed=createTenderICS({...t,tarih:'12.09.2026',saat:'14:30',documentVersion:4},new Date('2026-09-02T00:00:00Z'));
assert.match(first,/SEQUENCE:3/); assert.match(changed,/SEQUENCE:4/);
assert.match(changed,/LAST-MODIFIED:20260902T000000Z/);
assert.equal(first.match(/UID:[^\r\n]+/)[0],changed.match(/UID:[^\r\n]+/)[0]);
assert.match(changed,/art%C4%B1?an|artan sürüm|artan/);
});