Skip to content

Commit

Permalink
Fix: Update schema to valid one
Browse files Browse the repository at this point in the history
Close #907
Fix #905
  • Loading branch information
molant authored and alrra committed Mar 21, 2018
1 parent 0a58d8d commit c33c87f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/rule-http-compression/src/rule.ts
Expand Up @@ -50,8 +50,8 @@ export default class HttpCompressionRule implements IRule {
}
},
properties: {
resource: { $ref: '#/definitions/options' },
target: { $ref: '#/definitions/options' }
html: { $ref: '#/definitions/options' },
resource: { $ref: '#/definitions/options' }
},
type: 'object'
}],
Expand Down
6 changes: 3 additions & 3 deletions packages/rule-http-compression/tests/tests-https.ts
Expand Up @@ -43,15 +43,15 @@ ruleRunner.testRule(ruleName, testsForBrotliSmallSize, testConfigs);
ruleRunner.testRule(ruleName, testsForBrotliUASniffing(), testConfigs);

// Tests for the user options.
[true, false].forEach((isTarget) => {
[true, false].forEach((isHTML) => {
['gzip', 'zopfli', 'brotli'].forEach((encoding) => {
ruleRunner.testRule(
ruleName,
testsForUserConfigs(`${encoding}`, isTarget, true),
testsForUserConfigs(`${encoding}`, isHTML, true),
Object.assign(
{},
testConfigs,
{ ruleOptions: { [isTarget ? 'target' : 'resource']: { [encoding]: false } } }
{ ruleOptions: { [isHTML ? 'html' : 'resource']: { [encoding]: false } } }
)
);
});
Expand Down

0 comments on commit c33c87f

Please sign in to comment.