Update the templateChecker test to look at extra head tags instead of the defunct
headBlock. Add URL to the output to make working with wgd easy.
This commit is contained in:
parent
10dcc25aef
commit
3e326cf25d
1 changed files with 2 additions and 2 deletions
|
|
@ -53,12 +53,12 @@ my @templateLabels;
|
|||
|
||||
while (my $templateAsset = $getATemplate->()) {
|
||||
my $template = $templateAsset->get('template');
|
||||
my $header = $templateAsset->get('headBlock');
|
||||
my $header = $templateAsset->get('extraHeadTags');
|
||||
my $match = ($template =~ $macro);
|
||||
if ($header) {
|
||||
$match ||= ($header =~ $macro);
|
||||
}
|
||||
ok(!$match, sprintf "%s: (%s) has no bad gateway macros", $templateAsset->getTitle, $templateAsset->getId);
|
||||
ok(!$match, sprintf "%s: %s (%s) has no bad gateway macros", $templateAsset->getTitle, $templateAsset->getId, $templateAsset->getUrl);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue