Skip to content

Commit 6aaa393

Browse files
committed
add SecretStorage.keys() to make CI happy? (microsoft/vscode#196616)
1 parent c681197 commit 6aaa393

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/github/copilotRemoteAgent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('CopilotRemoteAgentManager', function () {
189189

190190
describe('invokeRemoteAgent()', function () {
191191
it('should return error when copilot API is not available', async function () {
192-
const result = await manager.invokeRemoteAgent('test prompt', 'test context', undefined);
192+
const result = await manager.invokeRemoteAgent('test prompt', 'test context');
193193

194194
assert.strictEqual(result.state, 'error');
195195
if (result.state === 'error') {
@@ -202,7 +202,7 @@ describe('CopilotRemoteAgentManager', function () {
202202
sinon.stub(manager as any, '_copilotApiPromise').value(Promise.resolve({} as any));
203203
sinon.stub(manager, 'repoInfo').resolves(undefined);
204204

205-
const result = await manager.invokeRemoteAgent('test prompt', 'test context', undefined);
205+
const result = await manager.invokeRemoteAgent('test prompt', 'test context');
206206

207207
assert.strictEqual(result.state, 'error');
208208
});

src/test/mocks/mockExtensionContext.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ export class MockExtensionContext implements ExtensionContext {
2121
store(key: string, value: string): Thenable<void> {
2222
throw new Error('Method not implemented.');
2323
}
24+
keys(): Thenable<string[]> {
25+
throw new Error('Method not implemented.');
26+
}
2427
delete(key: string): Thenable<void> {
2528
throw new Error('Method not implemented.');
2629
}
30+
2731
onDidChange!: Event<SecretStorageChangeEvent>;
2832
})();
2933
subscriptions: { dispose(): any }[] = [];

0 commit comments

Comments
 (0)