test invalid weekly manifests
This commit is contained in:
@@ -22,6 +22,12 @@ function sender(outbox, overrides={}) {
|
||||
sendEmail:async()=>({id:'synthetic-receipt'}),warn:()=>{},...overrides});
|
||||
}
|
||||
|
||||
test('invalid weekly manifest is rejected before it reaches the queue', t=>{
|
||||
const {outbox}=fixture(t);
|
||||
assert.throws(()=>outbox.prepare('2026-09-07','bad@example.test',{channel:'email'}),/manifesti bozuk/);
|
||||
assert.throws(()=>outbox.prepare('2026-09-07','bad@example.test',[{to:{email:'bad'}}]),/manifesti bozuk/);
|
||||
});
|
||||
|
||||
test('accepted delivery survives reopening and does not send again; weeks and owners are isolated',async t=>{
|
||||
const {outbox,directory}=fixture(t);let calls=0;
|
||||
const transport={sendEmail:async()=>{calls++;return {id:'receipt'};}};
|
||||
|
||||
Reference in New Issue
Block a user