Skip to content

Commit

Permalink
improves constant naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed May 4, 2020
1 parent 283ffe7 commit d4d2c0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { newRule, totalLoadedRules } from '../objects/rule';
import { newRule, totalNumberOfPrebuiltRulesInEsArchive } from '../objects/rule';

import {
ABOUT_FALSE_POSITIVES,
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('Signal detection rules, custom', () => {
changeToThreeHundredRowsPerPage();
waitForRulesToBeLoaded();

const expectedNumberOfRules = totalLoadedRules + 1;
const expectedNumberOfRules = totalNumberOfPrebuiltRulesInEsArchive + 1;
cy.get(RULES_TABLE).then($table => {
cy.wrap($table.find(RULES_ROW).length).should('eql', expectedNumberOfRules);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { machineLearningRule, totalLoadedRules } from '../objects/rule';
import { machineLearningRule, totalNumberOfPrebuiltRulesInEsArchive } from '../objects/rule';

import {
ABOUT_FALSE_POSITIVES,
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('Signal detection rules, machine learning', () => {
changeToThreeHundredRowsPerPage();
waitForRulesToBeLoaded();

const expectedNumberOfRules = totalLoadedRules + 1;
const expectedNumberOfRules = totalNumberOfPrebuiltRulesInEsArchive + 1;
cy.get(RULES_TABLE).then($table => {
cy.wrap($table.find(RULES_ROW).length).should('eql', expectedNumberOfRules);
});
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/siem/cypress/objects/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { rawRules } from '../../server/lib/detection_engine/rules/prepackaged_ru

export const totalNumberOfPrebuiltRules = rawRules.length;

export const totalLoadedRules = 130;
export const totalNumberOfPrebuiltRulesInEsArchive = 130;

interface Mitre {
tactic: string;
Expand Down

0 comments on commit d4d2c0e

Please sign in to comment.