Redesign of the SMS automation page
This commit is contained in:
@@ -46,9 +46,16 @@ function testCancelMap() {
|
||||
|
||||
function testTemplate() {
|
||||
assert(
|
||||
applyMessageTemplate('سلام {title}', 'فاکتور ۱۲') === 'سلام فاکتور ۱۲',
|
||||
applyMessageTemplate('سلام {title}', { title: 'فاکتور ۱۲' }) === 'سلام فاکتور ۱۲',
|
||||
'title var',
|
||||
);
|
||||
assert(
|
||||
applyMessageTemplate('سلام {نام} {شماره}', {
|
||||
name: 'علی',
|
||||
phone: '0912',
|
||||
}) === 'سلام علی 0912',
|
||||
'name phone vars',
|
||||
);
|
||||
assert(clipSms('الف'.repeat(200)).length === 160, 'sms clip');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user