Skip to content

Commit e2ff726

Browse files
committed
lint tests
1 parent e01e5d6 commit e2ff726

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/lib/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ describe('client module exports', () => {
8383
'isViewApiRequest',
8484
];
8585

86-
expectedExports.forEach((exportName) => {
86+
for (const exportName of expectedExports) {
8787
expect(exports).toContain(exportName);
88-
});
88+
}
8989
});
9090

9191
it('should not have unexpected exports', async () => {

tests/lib/client/WebviewLogger.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ describe('WebviewLogger', () => {
209209

210210
it('should handle null and undefined data', () => {
211211
logger.info('Message with null', null as any);
212+
// eslint-disable-next-line sonarjs/no-undefined-argument
212213
logger.warn('Message with undefined', undefined);
213214

214215
expect(mockVsCodeApi.postMessage).toHaveBeenCalledTimes(2);

tests/lib/host.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ describe('host module exports', () => {
102102
'isViewApiRequest',
103103
];
104104

105-
expectedExports.forEach((exportName) => {
105+
for (const exportName of expectedExports) {
106106
expect(exports).toContain(exportName);
107-
});
107+
}
108108
});
109109

110110
it('should not have unexpected exports', async () => {

0 commit comments

Comments
 (0)