test(f4): align legacy contracts with lifecycle model
This commit is contained in:
@@ -7,10 +7,11 @@ const service = readFileSync(resolve(process.cwd(), 'src/inspection-verification
|
||||
const migration = readFileSync(resolve(process.cwd(), 'src/database/migrations/1788112800000-phase-d5-3-16-verification-planning.ts'), 'utf8');
|
||||
const visitService = readFileSync(resolve(process.cwd(), 'src/inspection-visits/inspection-visits.service.ts'), 'utf8');
|
||||
|
||||
test('D5.3.16 builds the verification queue from the second finding deadline', () => {
|
||||
assert.match(service, /company_response_received_on IS NOT NULL/);
|
||||
test('D5.3.16/F4 builds the verification queue from the next control date and unresolved latest result', () => {
|
||||
assert.doesNotMatch(service, /company_response_received_on IS NOT NULL/);
|
||||
assert.match(service, /finding\.next_control_on IS NOT NULL/);
|
||||
assert.match(service, /verification_visit\.id IS NULL/);
|
||||
assert.match(service, /latest_verification\.outcome/);
|
||||
assert.match(service, /<> 'RESOLVED'/);
|
||||
assert.match(service, /overdueUnplanned/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user