From a823e4e08e40d11a0d977dc17ff4fb481ebac5e7 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 17 Sep 2020 15:15:13 +0200 Subject: [PATCH] fix tests --- .../public/dynamic_actions/action_factory.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }); });