修改完成
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$page = Get-Content -LiteralPath (Join-Path $root 'pages/auth/a05-reset-password.vue') -Raw -Encoding UTF8
|
||||
if ($page.Contains('<text class="success-mark">')) { throw 'A05 must not use a text symbol as its success asset' }
|
||||
foreach ($token in @('<image', 'class="success-mark"', 'brand-seal.png')) {
|
||||
if (-not $page.Contains($token)) { throw "A05 success asset missing: $token" }
|
||||
}
|
||||
Write-Output 'A05-SUCCESS-ASSET-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user