mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Correctly handle promises and rejections around cluster connection (#4216)
This commit is contained in:
1 parent
bb30bdc750
commit
2ab9aeb83c
4 files changed
+78
-94
No files matched your search
@@ -142,9 +142,9 @@ describe("kubeconfig manager tests", () => {
|
||||
const configPath = await kubeConfManager.getPath();
|
||||
|
||||
expect(await fse.pathExists(configPath)).toBe(true);
|
||||
await kubeConfManager.unlink();
|
||||
await kubeConfManager.clear();
|
||||
expect(await fse.pathExists(configPath)).toBe(false);
|
||||
await kubeConfManager.unlink(); // doesn't throw
|
||||
await kubeConfManager.clear(); // doesn't throw
|
||||
expect(async () => {
|
||||
await kubeConfManager.getPath();
|
||||
}).rejects.toThrow("already unlinked");
|
||||
|
||||
Reference in new issue
Block a user