Substitute org name and balance tokens in outbound SMS so templates no longer leave {از طرف} literal.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -38,6 +38,10 @@ describe('اتوماسیون پیام', () => {
|
||||
'سلام علی از منتکت - {unknown}',
|
||||
);
|
||||
assert.equal(applyMessageTemplate('{ name }', { name: 'x' }), 'x');
|
||||
assert.equal(
|
||||
applyMessageTemplate('از طرف {از طرف}', { from: 'هنراندیشه' }),
|
||||
'از طرف هنراندیشه',
|
||||
);
|
||||
});
|
||||
|
||||
it('متن پیامک بریده نمیشود', () => {
|
||||
|
||||
Reference in New Issue
Block a user