✨ Story 2.3: page accueil hero
This commit is contained in:
@@ -10,9 +10,17 @@ function Assert-True {
|
||||
|
||||
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'
|
||||
if ($index -match 'pages/home.php') {
|
||||
Assert-True (Test-Path 'pages/home.php') 'Missing pages/home.php'
|
||||
$homeContent = Get-Content -Raw 'pages/home.php'
|
||||
Assert-True ($homeContent -match 'Portfolio') 'home.php missing Portfolio text'
|
||||
Assert-True ($homeContent -match 'text-primary') 'home.php missing text-primary class'
|
||||
Assert-True ($homeContent -match 'btn-primary') 'home.php missing btn-primary class'
|
||||
} else {
|
||||
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'
|
||||
'OK'
|
||||
|
||||
Reference in New Issue
Block a user