Skip to content

Commit

Permalink
Fix test - again
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jun 16, 2021
1 parent 87ea5cb commit 33c69f4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
isUninitialisedResourceState,
} from '../../../state';
import { getCurrentIsolationRequestState } from '../store/selectors';
import { licenseService } from '../../../../common/hooks/use_license';

// not sure why this can't be imported from '../../../../common/mock/formatted_relative';
// but sure enough it needs to be inline in this one file
Expand All @@ -59,6 +60,7 @@ jest.mock('../../policy/store/services/ingest', () => {
});

jest.mock('../../../../common/lib/kibana');
jest.mock('../../../../common/hooks/use_license');

describe('when on the endpoint list page', () => {
const docGenerator = new EndpointDocGenerator();
Expand All @@ -70,6 +72,9 @@ describe('when on the endpoint list page', () => {
let coreStart: AppContextTestRender['coreStart'];
let middlewareSpy: AppContextTestRender['middlewareSpy'];
let abortSpy: jest.SpyInstance;

(licenseService as jest.Mocked<typeof licenseService>).isPlatinumPlus.mockReturnValue(true);

beforeAll(() => {
const mockAbort = new AbortController();
mockAbort.abort();
Expand Down

0 comments on commit 33c69f4

Please sign in to comment.