Skip to content

Commit

Permalink
Fixed comments from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHassanabad committed Oct 15, 2020
1 parent 3faee3b commit 981099c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('get_rules_to_update', () => {
expect(update).toEqual([]);
});

test('should return empty array if the id of file system rule is less than the installed version', () => {
test('should return empty array if the version of file system rule is less than the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 1;
Expand All @@ -39,7 +39,7 @@ describe('get_rules_to_update', () => {
expect(update).toEqual([]);
});

test('should return empty array if the id of file system rule is the same as the installed version', () => {
test('should return empty array if the version of file system rule is the same as the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 1;
Expand All @@ -51,7 +51,7 @@ describe('get_rules_to_update', () => {
expect(update).toEqual([]);
});

test('should return the rule to update if the id of file system rule is greater than the installed version', () => {
test('should return the rule to update if the version of file system rule is greater than the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 2;
Expand All @@ -65,7 +65,7 @@ describe('get_rules_to_update', () => {
expect(update).toEqual([ruleFromFileSystem]);
});

test('should return 1 rule out of 2 to update if the id of file system rule is greater than the installed version of just one', () => {
test('should return 1 rule out of 2 to update if the version of file system rule is greater than the installed version of just one', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 2;
Expand All @@ -84,7 +84,7 @@ describe('get_rules_to_update', () => {
expect(update).toEqual([ruleFromFileSystem]);
});

test('should return 2 rules out of 2 to update if the id of file system rule is greater than the installed version of both', () => {
test('should return 2 rules out of 2 to update if the version of file system rule is greater than the installed version of both', () => {
const ruleFromFileSystem1 = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem1.rule_id = 'rule-1';
ruleFromFileSystem1.version = 2;
Expand Down Expand Up @@ -325,7 +325,7 @@ describe('get_rules_to_update', () => {
expect(shouldUpdate).toEqual(false);
});

test('should return "false" if the id of file system rule is less than the installed version', () => {
test('should return "false" if the version of file system rule is less than the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 1;
Expand All @@ -337,7 +337,7 @@ describe('get_rules_to_update', () => {
expect(shouldUpdate).toEqual(false);
});

test('should return "false" if the id of file system rule is the same as the installed version', () => {
test('should return "false" if the version of file system rule is the same as the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 1;
Expand All @@ -349,7 +349,7 @@ describe('get_rules_to_update', () => {
expect(shouldUpdate).toEqual(false);
});

test('should return "true" to update if the id of file system rule is greater than the installed version', () => {
test('should return "true" to update if the version of file system rule is greater than the installed version', () => {
const ruleFromFileSystem = getAddPrepackagedRulesSchemaDecodedMock();
ruleFromFileSystem.rule_id = 'rule-1';
ruleFromFileSystem.version = 2;
Expand Down

0 comments on commit 981099c

Please sign in to comment.