Skip to content

Commit c687ea9

Browse files
sudhirvermadgolovin
authored andcommitted
increase unittest code coverage for cluster.ts file
1 parent 1c3aab3 commit c687ea9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/openshift/cluster.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ suite('Openshift/Cluster', () => {
9696
expect(status).null;
9797
});
9898

99+
test('exits if the user refuses to select the way to log in to the cluster', async () => {
100+
loginStub.resolves('Yes');
101+
quickPickStub.resolves(undefined);
102+
const status = await Cluster.login();
103+
expect(status).null;
104+
});
105+
99106
test('logins to new cluster if user answer yes to a warning', async () => {
100107
loginStub.resolves(false);
101108
infoStub.resolves('Yes');

0 commit comments

Comments
 (0)