✨ Story 2.3: page accueil hero
This commit is contained in:
@@ -20,6 +20,10 @@ Assert-True ($js -match 'initNavbarScroll') 'Missing initNavbarScroll'
|
||||
|
||||
Assert-True (Test-Path 'index.php') 'Missing index.php'
|
||||
$index = Get-Content -Raw 'index.php'
|
||||
Assert-True ($index -match "include_template\('navbar'") 'index.php missing navbar include'
|
||||
if (-not ($index -match "include_template\('navbar'")) {
|
||||
Assert-True (Test-Path 'pages/home.php') 'Missing pages/home.php for navbar include'
|
||||
$homeContent = Get-Content -Raw 'pages/home.php'
|
||||
Assert-True ($homeContent -match "include_template\('navbar'") 'pages/home.php missing navbar include'
|
||||
}
|
||||
|
||||
'OK'
|
||||
'OK'
|
||||
|
||||
Reference in New Issue
Block a user