23 lines
794 B
PowerShell
23 lines
794 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
function Assert-True {
|
|
param(
|
|
[bool]$Condition,
|
|
[string]$Message
|
|
)
|
|
if (-not $Condition) { throw $Message }
|
|
}
|
|
|
|
Assert-True (Test-Path 'pages/home.php') 'Missing pages/home.php'
|
|
$homeContent = Get-Content -Raw 'pages/home.php'
|
|
Assert-True ($homeContent -match 'Découvrir mes projets') 'Home missing CTA projects'
|
|
Assert-True ($homeContent -match 'En savoir plus') 'Home missing CTA about'
|
|
Assert-True ($homeContent -match 'animate-fade-in') 'Home missing animations'
|
|
Assert-True ($homeContent -match 'include_template\(\x27navbar\x27') 'Home missing navbar include'
|
|
|
|
Assert-True (Test-Path 'index.php') 'Missing index.php'
|
|
$index = Get-Content -Raw 'index.php'
|
|
Assert-True ($index -match 'pages/home.php') 'index.php missing home include'
|
|
|
|
'OK'
|