完成50%
This commit is contained in:
@@ -2,10 +2,11 @@ $ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$search = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g06-search-genealogies.vue') -Raw -Encoding UTF8
|
||||
$join = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g08-join-application.vue') -Raw -Encoding UTF8
|
||||
foreach ($token in @('genealogyName=${encodeURIComponent(item.name)}', 'previous=${item.relation}')) {
|
||||
if (-not $search.Contains($token)) { throw "G06 context propagation missing: $token" }
|
||||
foreach ($token in @('genealogyName:', 'previous:', 'encodeURIComponent(item.name)')) {
|
||||
if ($search.Contains($token)) { throw "G06 must not propagate retired context: $token" }
|
||||
}
|
||||
foreach ($token in @('previousRelation', 'query.genealogyName', 'previousNotice', 'decodeURIComponent')) {
|
||||
if (-not $join.Contains($token)) { throw "G08 context consumption missing: $token" }
|
||||
foreach ($token in @('previousRelation', 'query.genealogyName', 'query.previous', 'decodeURIComponent', 'genealogyPreview')) {
|
||||
if ($join.Contains($token)) { throw "G08 must not consume retired context: $token" }
|
||||
}
|
||||
if (-not $join.Contains('findGenealogyFixture')) { throw 'G08 must read display identity from the shared genealogy fixture owner' }
|
||||
Write-Output 'G06-G08-CONTEXT-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user