diff --git a/x-pack/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts b/x-pack/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts index d038167fabb8b..66a876bdbab85 100644 --- a/x-pack/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts +++ b/x-pack/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts @@ -117,14 +117,12 @@ describe('License & ActionFactory', () => { describe('isBeta', () => { test('false by default', async () => { - const factory = new ActionFactory(def, () => licensingMock.createLicense()); + const factory = createActionFactory(); expect(factory.isBeta).toBe(false); }); test('true', async () => { - const factory = new ActionFactory({ ...def, isBeta: true }, () => - licensingMock.createLicense() - ); + const factory = createActionFactory({ isBeta: true }); expect(factory.isBeta).toBe(true); }); });