Skip to content

Commit c0dce25

Browse files
committed
test(V2): align reference guard assertions
Drop obsolete hint checks from reference guard tests now that v2-rc2 returns the current referenced-record error shape.
1 parent dab258e commit c0dce25

4 files changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ describe('Label V2 Endpoint Integration Tests', function () {
652652
expect(response.body.references).to.be.an('array').with.lengthOf(1);
653653
expect(response.body.references[0].table).to.equal('unit_label');
654654
expect(response.body.references[0].count).to.equal(1);
655-
expect(response.body.hint).to.include('force=true');
656655

657656
const stagingRecord = await StagingV2.findOne({
658657
where: { table: 'label', action: 'DELETE' },

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ describe('V2 Methodology API - Basic CRUD Tests', function () {
444444
expect(response.body.references).to.be.an('array').with.lengthOf(1);
445445
expect(response.body.references[0].table).to.equal('project_methodology');
446446
expect(response.body.references[0].count).to.equal(1);
447-
expect(response.body.hint).to.include('force=true');
448447

449448
const stagingRecord = await StagingV2.findOne({
450449
where: { table: 'methodology', action: 'DELETE' },

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ describe('V2 Program API - Basic CRUD Tests', function () {
463463
expect(response.body.references).to.be.an('array').with.lengthOf(1);
464464
expect(response.body.references[0].table).to.equal('project');
465465
expect(response.body.references[0].count).to.equal(1);
466-
expect(response.body.hint).to.include('force=true');
467466

468467
const stagingRecord = await StagingV2.findOne({
469468
where: { table: 'program', action: 'DELETE' },

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ describe('Stakeholder V2 Endpoint Integration Tests', function () {
564564
expect(response.body.references).to.be.an('array').with.lengthOf(1);
565565
expect(response.body.references[0].table).to.equal('stakeholder_projects');
566566
expect(response.body.references[0].count).to.equal(1);
567-
expect(response.body.hint).to.include('force=true');
568567

569568
const stagingRecord = await StagingV2.findOne({
570569
where: { table: 'stakeholder', action: 'DELETE' },

0 commit comments

Comments
 (0)