Derive every Sms field in createSms()
Mirror / push (push) Has been cancelled
Test / lint (pull_request) Successful in 26s
Test / test (18) (pull_request) Successful in 30s
Test / test (20) (pull_request) Successful in 32s
Test / test (22) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 30s
Test / test (26) (pull_request) Successful in 32s

This commit is contained in:
2026-09-29 11:05:59 +02:00
parent cc18569a05
commit b2945f011d
3 changed files with 15 additions and 32 deletions
+2 -8
View File
@@ -1724,14 +1724,11 @@ describe('sendResp()', () => {
session.sendReturn = () => Promise.resolve({ err: new Error('Socket is closed') });
const sms = createSms({
from: '46701113311',
message: 'never answered',
pduObjs: [submitPdu(1)],
session,
to: '46709771337',
}, {
lostLink: () => false,
answered: () => { answered++; },
lostLink: () => false,
send: () => Promise.resolve({ err: new Error('never sent') }),
});
@@ -1749,14 +1746,11 @@ describe('sendDlr()', () => {
let call = 0;
const sms = createSms({
from: '46701113311',
message: 'three segments',
pduObjs: [submitPdu(1), submitPdu(2), submitPdu(3)],
session,
to: '46709771337',
}, {
lostLink: () => false,
answered: () => undefined,
lostLink: () => false,
send: () => {
call++;