Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Nov 28, 2021
1 parent 178b268 commit f06bf88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/tkn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ suite('tkn', () => {
sandbox.stub(telemetry, 'telemetryLogError');
sandbox.stub(ToolsConfig, 'getVersion').resolves('0.2.0');
execStubCli = sandbox.stub(CliImpl.prototype, 'execute').resolves();
sandbox.stub(ToolsConfig, 'getTknLocation').returns('kubectl');
});

teardown(() => {
Expand Down
2 changes: 2 additions & 0 deletions test/util/check-ref-resource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { TestItem } from '../tekton/testTektonitem';
import { TknImpl } from '../../src/tkn';
import { ContextType } from '../../src/context-type';
import { getPipelineList } from '../../src/util/list-tekton-resource';
import { ToolsConfig } from '../../src/tools';



Expand Down Expand Up @@ -65,6 +66,7 @@ suite('Reference Task/ClusterTask', () => {

setup(() => {
execStub = sandbox.stub(TknImpl.prototype, 'execute').resolves();
sandbox.stub(ToolsConfig, 'getTknLocation').returns('kubectl');
});

teardown(() => {
Expand Down
2 changes: 2 additions & 0 deletions test/yaml-support/tasks-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as sinonChai from 'sinon-chai';
import * as sinon from 'sinon';
import * as taskProvider from '../../src/yaml-support/tkn-tasks-provider';
import * as tkn from '../../src/tkn';
import { ToolsConfig } from '../../src/tools';

const expect = chai.expect;
chai.use(sinonChai);
Expand All @@ -18,6 +19,7 @@ suite('Task provider', () => {

setup(() => {
execStub = sandbox.stub(tknCli, 'execute');
sandbox.stub(ToolsConfig, 'getTknLocation').returns('kubectl');
});

teardown(() => {
Expand Down
2 changes: 2 additions & 0 deletions test/yaml-support/tkn-condition-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as sinonChai from 'sinon-chai';
import * as sinon from 'sinon';
import { tkn } from '../../src/tkn';
import { getTknConditionsSnippets } from '../../src/yaml-support/tkn-conditions-provider';
import { ToolsConfig } from '../../src/tools';

const expect = chai.expect;
chai.use(sinonChai);
Expand All @@ -18,6 +19,7 @@ suite('ConditionRef provider', () => {

setup(() => {
tknExecute = sandbox.stub(tkn, 'execute');
sandbox.stub(ToolsConfig, 'getTknLocation').returns('kubectl');
});

teardown(() => {
Expand Down

0 comments on commit f06bf88

Please sign in to comment.