Skip to content

Commit 86ed537

Browse files
committed
test(API): cover unit status reason in v2 split
1 parent 6e1636c commit 86ed537

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/v2/integration/unit-v2.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,20 +1174,23 @@ describe('V2 Unit API - Basic CRUD Tests', function () {
11741174
unitBlockEnd: '1029',
11751175
unitCurrentOwner: 'Owner 1',
11761176
unitStatus: 'Issued',
1177+
unitStatusReason: 'Issued after split',
11771178
},
11781179
{
11791180
unitCount: 40,
11801181
unitBlockStart: '1030',
11811182
unitBlockEnd: '1069',
11821183
unitCurrentOwner: 'Owner 2',
11831184
unitStatus: 'Held',
1185+
unitStatusReason: 'Held after split',
11841186
},
11851187
{
11861188
unitCount: 30,
11871189
unitBlockStart: '1070',
11881190
unitBlockEnd: '1099',
11891191
unitCurrentOwner: 'Owner 3',
11901192
unitStatus: 'Retired',
1193+
unitStatusReason: 'Retired after split',
11911194
},
11921195
],
11931196
};
@@ -1218,6 +1221,9 @@ describe('V2 Unit API - Basic CRUD Tests', function () {
12181221
expect(stagedData.length).to.equal(3);
12191222
expect(stagedData[0].cadTrustUnitId).to.equal(unit.cadTrustUnitId); // First keeps original ID
12201223
expect(stagedData[1].cadTrustUnitId).to.not.equal(unit.cadTrustUnitId); // Others get new IDs
1224+
expect(stagedData[0].unitStatusReason).to.equal('Issued after split');
1225+
expect(stagedData[1].unitStatusReason).to.equal('Held after split');
1226+
expect(stagedData[2].unitStatusReason).to.equal('Retired after split');
12211227
});
12221228

12231229
it('should return error if cadTrustUnitId is missing', async function () {

0 commit comments

Comments
 (0)