Skip to content

Commit

Permalink
Mock getLatestPrepackagedRules instead of getPrepackagedRules
Browse files Browse the repository at this point in the history
  • Loading branch information
rw-access committed Apr 10, 2021
1 parent 4a855ee commit a1febb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mo

jest.mock('../../rules/get_prepackaged_rules', () => {
return {
getPrepackagedRules: async (): Promise<AddPrepackagedRulesSchemaDecoded[]> => {
getLatestPrepackagedRules: async (): Promise<AddPrepackagedRulesSchemaDecoded[]> => {
return [
{
author: ['Elastic'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {

jest.mock('../../rules/get_prepackaged_rules', () => {
return {
getPrepackagedRules: () => {
getLatestPrepackagedRules: async () => {
return [
{
rule_id: 'rule-1',
Expand Down

0 comments on commit a1febb9

Please sign in to comment.