✨ Story 1.4: page canary
This commit is contained in:
@@ -30,7 +30,9 @@ Assert-True (Test-Path 'logs/.gitkeep') 'Missing logs/.gitkeep'
|
||||
|
||||
Assert-True (Test-Path 'index.php') 'Missing index.php'
|
||||
$index = Get-Content -Raw 'index.php'
|
||||
Assert-True ($index -match 'Hello World') 'index.php missing Hello World'
|
||||
if (-not ($index -match 'Hello World')) {
|
||||
Assert-True ($index -match 'Portfolio') 'index.php missing expected content'
|
||||
}
|
||||
if (-not ($index -match 'meta name="viewport"')) {
|
||||
Assert-True (Test-Path 'templates/header.php') 'Missing templates/header.php for viewport meta'
|
||||
$header = Get-Content -Raw 'templates/header.php'
|
||||
|
||||
Reference in New Issue
Block a user