Add test to make template_type mandatory

master
Ben Moon 2016-02-04 18:41:36 +00:00
parent 3a5fcd5e21
commit 8980550aec
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ foreach my $path (glob("$json_dir/*.json")){
push(@tests, {msg => "bad id '$cheat_id', should be '$expected'", critical => 1, pass => $temp_pass});
}
### Template Type tests ###
$temp_pass = (exists $json->{template_type} && $json->{template_type})? 1 : 0;
push(@tests, {msg => 'must specify a template type', critical => 1, pass => $temp_pass});
### Metadata tests ###
my $has_meta = exists $json->{metadata};