mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-23 05:46:30 +00:00
Improve manifest validation tests for url and extract_dir
Manifest validation should fail if there are untranslated variables left over in url or extract_dir
This commit is contained in:
@@ -11,11 +11,19 @@ describe "manifest-validation" {
|
||||
$manifest = parse_json $_.fullname
|
||||
|
||||
$url = arch_specific "url" $manifest "32bit"
|
||||
$url | should not match "\$"
|
||||
$url64 = arch_specific "url" $manifest "64bit"
|
||||
$url64 | should not match "\$"
|
||||
if(!$url) {
|
||||
$url = arch_specific "url" $manifest "64bit"
|
||||
$url = $url64
|
||||
}
|
||||
|
||||
$url | should not benullorempty
|
||||
|
||||
$extract_dir32 = arch_specific "extract_dir" $manifest "32bit"
|
||||
$extract_dir32 | should not match "\$"
|
||||
$extract_dir64 = arch_specific "extract_dir" $manifest "64bit"
|
||||
$extract_dir64 | should not match "\$"
|
||||
|
||||
$manifest | should not benullorempty
|
||||
$manifest.version | should not benullorempty
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user