Corrige creación de Inspección, separa Departamento→Área→Yacimiento, elimina el UPDATE oculto de checklist en lectura, integra Preparación para campo como etapa de Inspección, limita operaciones Android al Yacimiento, preserva scope en edición, auto-incluye Inventarios accionables, valida Operadora a plannedStartAt y recompila Android 0.15.2/vc24 con el ícono exacto de presentación.
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
import test from 'node:test';
|
|
|
|
function mountedRepoFile(path: string): string {
|
|
return readFileSync(resolve(process.cwd(), '..', path), 'utf8');
|
|
}
|
|
|
|
test('F6.1 Android test cut targets production API and has a distinct installable debug version', () => {
|
|
const gradle = mountedRepoFile('android-app/app/build.gradle.kts');
|
|
|
|
assert.match(gradle, /versionCode = 24/);
|
|
assert.match(gradle, /versionName = "0\.15\.2"/);
|
|
assert.match(gradle, /https:\/\/dhv2\.korexlabs\.com\/api\/v3\//);
|
|
assert.match(gradle, /applicationIdSuffix = "\.debug"/);
|
|
});
|
|
|
|
test('F5/F6.1 field inventory exposes Other families as reviewable choices to Android', () => {
|
|
const service = readFileSync(
|
|
resolve(process.cwd(), 'src/inspection-visits/f3-field-inventory-structure.service.ts'),
|
|
'utf8',
|
|
);
|
|
|
|
assert.match(service, /F5:SYSTEM:OTHER:%/);
|
|
assert.match(service, /AS "isOther"/);
|
|
assert.match(service, /isOtherFamily: family\.isOther/);
|
|
}); |