|
18 | 18 | */
|
19 | 19 |
|
20 | 20 | import { join } from 'path';
|
21 |
| -import { writeFileSync, existsSync, mkdirSync } from 'fs'; |
| 21 | +import { writeFileSync, mkdirSync } from 'fs'; |
22 | 22 |
|
23 | 23 | import sinon from 'sinon';
|
24 | 24 | import glob from 'glob-all';
|
@@ -68,25 +68,6 @@ describe('kibana cli', function () {
|
68 | 68 | expect(process.exit.called).toBe(true);
|
69 | 69 | });
|
70 | 70 |
|
71 |
| - it('remove x-pack if it exists', () => { |
72 |
| - settings.pluginPath = join(pluginDir, 'x-pack'); |
73 |
| - settings.plugin = 'x-pack'; |
74 |
| - mkdirSync(join(pluginDir, 'x-pack'), { recursive: true }); |
75 |
| - expect(existsSync(settings.pluginPath)).toEqual(true); |
76 |
| - remove(settings, logger); |
77 |
| - expect(existsSync(settings.pluginPath)).toEqual(false); |
78 |
| - }); |
79 |
| - |
80 |
| - it('distribution error if x-pack does not exist', () => { |
81 |
| - settings.pluginPath = join(pluginDir, 'x-pack'); |
82 |
| - settings.plugin = 'x-pack'; |
83 |
| - expect(existsSync(settings.pluginPath)).toEqual(false); |
84 |
| - remove(settings, logger); |
85 |
| - expect(logger.error.getCall(0).args[0]).toMatch( |
86 |
| - /Please install the OSS-only distribution to remove X-Pack features/ |
87 |
| - ); |
88 |
| - }); |
89 |
| - |
90 | 71 | it('delete the specified folder.', function () {
|
91 | 72 | settings.pluginPath = join(pluginDir, 'foo');
|
92 | 73 | mkdirSync(join(pluginDir, 'foo'), { recursive: true });
|
|
0 commit comments