فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(a03): fix three unbalanced assertion parentheses in security regression

davoodmehraban89 committed Oct 31, 2026 at 00:40 UTC c9c39e9c219b4e035ce2f5a83198ead4119a89c2
1 file changed +3 -3
tests/ui-control-structure.test.mjs
+3 -3
@@ -205,12 +205,12 @@ test('A03: company switch, posted journals and printable ledger encode untrusted
205 const settings=fs.readFileSync(path.join(root,'src','views','SettingsView.js'),'utf8');
206 const accounting=fs.readFileSync(path.join(root,'src','views','AccountingView.js'),'utf8');
207 const ledger=fs.readFileSync(path.join(root,'src','views','ContactLedgerModal.js'),'utf8');
208 - assert.ok(settings.includes('this._esc(JSON.stringify(String(c.id ??')));
209 - assert.ok(accounting.includes('const actionArg = value => html(JSON.stringify(String(value ??')));
208 + assert.ok(settings.includes('this._esc(JSON.stringify(String(c.id ??'));
209 + assert.ok(accounting.includes('const actionArg = value => html(JSON.stringify(String(value ??'));
210 assert.ok(!accounting.includes("'${html(j.id)}'"));
211 assert.ok(!accounting.includes("'${html(p.id)}'"));
212 assert.ok(!accounting.includes("'${html(s.id)}'"));
213 - assert.ok(ledger.includes('this._esc(JSON.stringify(String(contactId ??')));
213 + assert.ok(ledger.includes('this._esc(JSON.stringify(String(contactId ??'));
214 assert.ok(ledger.includes('<title>صورت‌حساب ${this._esc(contact.name)}</title>'));
215 assert.doesNotMatch(ledger,/cdn\.jsdelivr\.net/);
216 assert.ok(ledger.split('this._esc(Formatters.toPersianDigits(r.date').length>=3);