18 lines
564 B
PowerShell
18 lines
564 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
function Assert-True {
|
|
param(
|
|
[bool]$Condition,
|
|
[string]$Message
|
|
)
|
|
if (-not $Condition) { throw $Message }
|
|
}
|
|
|
|
Assert-True (Test-Path 'index.php') 'Missing index.php'
|
|
$index = Get-Content -Raw 'index.php'
|
|
Assert-True ($index -match 'Portfolio') 'index.php missing Portfolio text'
|
|
Assert-True ($index -match 'text-primary') 'index.php missing text-primary class'
|
|
Assert-True ($index -match 'badge') 'index.php missing badge class'
|
|
Assert-True ($index -match 'btn-primary') 'index.php missing btn-primary class'
|
|
|
|
'OK' |