Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

534 B
Raw Blame
import test from 'node:test';
import assert from 'node:assert/strict';
import {finalJobStatus} from '../server/jobs.mjs';

test('a load cannot complete when fault recovery was not verified',()=>{
  assert.equal(finalJobStatus({failure:null,recoveryError:'Recovery could not be verified'}),'failed');
  assert.equal(finalJobStatus({failure:'k6 threshold failed'}),'failed');
  assert.equal(finalJobStatus({cancelled:true,recoveryError:'Recovery could not be verified'}),'cancelled');
  assert.equal(finalJobStatus({}),'complete');
});