test(f4): make lifecycle source boundaries deterministic
This commit is contained in:
@@ -35,7 +35,7 @@ test('F4 act locking is independent from inspection-wide verification completion
|
||||
|
||||
test('F4 blocks act header and inventory mutations once the act leaves draft', () => {
|
||||
const updateBody = acts.slice(acts.indexOf(' async update('), acts.indexOf(' async cancel('));
|
||||
const cancelBody = acts.slice(acts.indexOf(' async cancel('), acts.indexOf(' async getById('));
|
||||
const cancelBody = acts.slice(acts.indexOf(' async cancel('), acts.indexOf(' private actSelect('));
|
||||
assert.match(updateBody, /this\.assertActDraft\(act\)/);
|
||||
assert.match(cancelBody, /this\.assertActDraft\(act\)/);
|
||||
});
|
||||
@@ -50,7 +50,7 @@ test('F4 blocks finding creation and editing once the act is locked', () => {
|
||||
assert.match(editableGuard, /INSPECTION_FINDING_ACT_NOT_EDITABLE/);
|
||||
|
||||
const createBody = findings.slice(findings.indexOf(' async create('), findings.indexOf(' async update('));
|
||||
const updateBody = findings.slice(findings.indexOf(' async update('), findings.indexOf(' async updateFollowUp('));
|
||||
const updateBody = findings.slice(findings.indexOf(' async update('), findings.indexOf(' async close('));
|
||||
assert.match(createBody, /this\.assertActEditable\(act, visit\)/);
|
||||
assert.match(updateBody, /this\.assertActEditable\(act, visit\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user