u
This commit is contained in:
@@ -214,6 +214,18 @@ async function run() {
|
||||
assert.equal(shipmentsAfterDel.length, 1);
|
||||
console.log('PASS: Unshipped shipment 2 successfully deleted');
|
||||
|
||||
// 9. Verify peek next number works for entity and other types without error
|
||||
const nextEntity = await store.entity.peekNextNumber(googleAuthId);
|
||||
assert.ok(typeof nextEntity === 'string' && nextEntity.length > 0);
|
||||
console.log('PASS: store.entity.peekNextNumber succeeded:', nextEntity);
|
||||
|
||||
const numList = await store.numbers.list(googleAuthId);
|
||||
assert.ok(Array.isArray(numList) && numList.length > 0);
|
||||
const shipmentSeq = numList.find((n) => n.type === 'shipment');
|
||||
assert.ok(shipmentSeq, 'Expected shipment sequence in numbers.list');
|
||||
assert.equal(shipmentSeq.prefix, '-L-');
|
||||
console.log('PASS: store.numbers.list includes shipment with prefix -L-');
|
||||
|
||||
console.log('--- ALL TESTS PASSED SUCCESSFULLY! ---');
|
||||
} finally {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user