Skip to content

Commit

Permalink
Fix test status for HTML sub tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Nov 8, 2021
1 parent 691749e commit 40348de
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/html/Anchor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class Anchor extends Test {
};

results.push({
status: 'SUCCESS',
status: this.getStatus([
isFileAvailabe.status,
] as any),
title: anchor,
description: '',
results: [
Expand Down
7 changes: 6 additions & 1 deletion src/html/CSS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ class CSS extends Test {
}

results.push({
status: 'SUCCESS',
status: this.getStatus([
isFileAvailabe.status,
isCached.status,
hasXContentTypeOptionsHeader.status,
isMinified.status,
] as any),
title: filename,
description: '',
results: [
Expand Down
6 changes: 5 additions & 1 deletion src/html/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class Image extends Test {
}

results.push({
status: 'SUCCESS',
status: this.getStatus([
isFileAvailabe.status,
isCached.status,
hasXContentTypeOptionsHeader.status,
] as any),
title: filename,
description: '',
results: [
Expand Down
8 changes: 7 additions & 1 deletion src/html/JavaScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ class JavaScript extends Test {
};

results.push({
status: 'SUCCESS',
status: this.getStatus([
isFileAvailabe.status,
isCached.status,
hasXContentTypeOptionsHeader.status,
isMinified.status,
hasConsoleLogs.status,
] as any),
title: filename,
description: '',
results: [
Expand Down

0 comments on commit 40348de

Please sign in to comment.