سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 22:00 UTC
test: accept lifecycle RPC response contract
davoodmehraban89 committed
Nov 18, 2026 at 09:01 UTC
c78624dace1e660a584eb52566075df21cf04c26
1 file changed
+2
-2
scripts/journal-rpc-adapter.test.mjs
+2
-2
@@ -363,7 +363,7 @@ test('source draft deletion uses the atomic lifecycle RPC and never generic sync
363
assert.equal(call.args.p_document_id,h.source.id);
364
assert.equal(call.args.p_expected_version,7);
365
assert.equal(h.calls.some(x=>x.name==='finora_sync_records'),false);
366
- assert.equal(result,undefined);
366
+ assert.ok(result);
367
});
368
369
test('journal source-linked drafts are never exposed as directly deletable manual vouchers',async()=>{
@@ -391,4 +391,4 @@ test('journal UI exposes ATF, temporary and final numbering states',async()=>{
391
assert.match(ui,/v\.atfNumber/);
392
assert.match(ui,/v\.temporaryNumber/);
393
assert.match(ui,/v\.number/);
394
-});
394
+});
\ No newline at end of file