Skip to content

Commit

Permalink
test: revert failures and suppress ESLint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 29, 2024
1 parent 7248ca5 commit f095ab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/__tests__/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ describe('Extension entry point', () => {
await new Promise((resolve) => setImmediate(resolve));

onNotification.mockImplementation((): void => {
throw new Error('String problem!');
throw 'String problem!'; // eslint-disable-line @typescript-eslint/only-throw-error
});

await activate(mockExtensionContext);
Expand Down Expand Up @@ -356,7 +356,7 @@ describe('Extension entry point', () => {
await mockCommands.registerCommand.mock.calls[1][1]();

start.mockImplementation((): void => {
throw new Error('String problem!');
throw 'String problem!'; // eslint-disable-line @typescript-eslint/only-throw-error
});

await mockCommands.registerCommand.mock.calls[1][1]();
Expand Down Expand Up @@ -402,7 +402,7 @@ describe('Extension entry point', () => {

it('should show unknown error message when deactivate fails to stop the client', async () => {
stop.mockImplementation(() => {
throw new Error('unknown');
throw undefined; // eslint-disable-line @typescript-eslint/only-throw-error
});

await activate(mockExtensionContext);
Expand Down

0 comments on commit f095ab0

Please sign in to comment.