Add extension uninstall (#1524)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-26 10:45:47 +02:00
1 parent 95d7ff847e
commit ccd38b5cbe
8 files changed
+106 -42

No files matched your search

@@ -18,6 +18,7 @@ jest.mock(
name: "TestExtension",
version: "1.0.0",
},
absolutePath: "/test/1",
manifestPath,
isBundled: false,
isEnabled: true,
@@ -30,6 +31,7 @@ jest.mock(
name: "TestExtension2",
version: "2.0.0",
},
absolutePath: "/test/2",
manifestPath: manifestPath2,
isBundled: false,
isEnabled: true,
@@ -52,6 +54,7 @@ jest.mock(
name: "TestExtension",
version: "1.0.0",
},
absolutePath: "/test/1",
manifestPath,
isBundled: false,
isEnabled: true,
@@ -64,7 +67,8 @@ jest.mock(
name: "TestExtension3",
version: "3.0.0",
},
manifestPath3,
absolutePath: "/test/3",
manifestPath: manifestPath3,
isBundled: false,
isEnabled: true,
},
@@ -94,6 +98,7 @@ describe("ExtensionLoader", () => {
expect(extensionLoader.userExtensions).toMatchInlineSnapshot(`
Map {
"manifest/path" => Object {
"absolutePath": "/test/1",
"isBundled": false,
"isEnabled": true,
"manifest": Object {
@@ -103,13 +108,14 @@ describe("ExtensionLoader", () => {
"manifestPath": "manifest/path",
},
"manifest/path3" => Object {
"absolutePath": "/test/3",
"isBundled": false,
"isEnabled": true,
"manifest": Object {
"name": "TestExtension3",
"version": "3.0.0",
},
"manifestPath3": "manifest/path3",
"manifestPath": "manifest/path3",
},
}
`);
@@ -9,6 +9,7 @@ describe("lens extension", () => {
name: "foo-bar",
version: "0.1.1"
},
absolutePath: "/absolute/fake/",
manifestPath: "/this/is/fake/package.json",
isBundled: false,
isEnabled: true