From b93ef34502da34475f27b5423bcfa62f905951ac Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Thu, 25 Mar 2021 20:08:51 +0000 Subject: [PATCH] [Tests] update plugins_discovery test Updating a test that discovers plugins to have the correct amount. The original tests removed the creation of the mock related to x-pack. Update the test to get the correct values while running tests. Signed-off-by: Kawika Avilla --- src/core/server/plugins/discovery/plugins_discovery.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/server/plugins/discovery/plugins_discovery.test.ts b/src/core/server/plugins/discovery/plugins_discovery.test.ts index e62cc727e08f..84c269d408fe 100644 --- a/src/core/server/plugins/discovery/plugins_discovery.test.ts +++ b/src/core/server/plugins/discovery/plugins_discovery.test.ts @@ -154,8 +154,8 @@ describe('plugins discovery system', () => { const plugins = await plugin$.pipe(toArray()).toPromise(); const pluginNames = plugins.map((plugin) => plugin.name); - expect(pluginNames).toHaveLength(3); - expect(pluginNames).toEqual(expect.arrayContaining(['pluginA', 'pluginB', 'pluginC'])); + expect(pluginNames).toHaveLength(2); + expect(pluginNames).toEqual(expect.arrayContaining(['pluginA', 'pluginB'])); }); it('return errors when the manifest is invalid or incompatible', async () => {