Skip to content

Commit be69fd7

Browse files
committed
feat: update monaco mock
1 parent b5a3fe5 commit be69fd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/mocks/monaco.ts

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export class MonacoMock {
4444
},
4545
},
4646
};
47+
public KeyMod = {
48+
CtrlCmd: jest.fn(),
49+
};
50+
public KeyCode = {
51+
KEY_K: jest.fn(),
52+
};
4753
}
4854

4955
export class MonacoEditorMock {
@@ -55,6 +61,7 @@ export class MonacoEditorMock {
5561
private model = new MonacoModelMock('', 'javascript');
5662
private scrollHeight = 0;
5763

64+
public addCommand = jest.fn();
5865
public dispose = jest.fn();
5966
public getAction = jest.fn(() => this.action);
6067
public getModel = jest.fn(() => this.model);

0 commit comments

Comments
 (0)