Skip to content

Commit

Permalink
fix: deepsourse
Browse files Browse the repository at this point in the history
  • Loading branch information
sherzod-bakhodirov committed Dec 17, 2024
1 parent 7ed6806 commit 070bb52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ beforeEach(() => {
createJwtStub = jest.spyOn(webCryptoUtils, 'createJwt');
getDecryptedDeviceShareStub = jest.spyOn(deviceShareWebCryptoUtils, 'getDecryptedDeviceShare');
clearDeviceSharesStub = jest.spyOn(deviceShareWebCryptoUtils, 'clearDeviceShares');
jest.spyOn(global.console, 'info').mockImplementation(() => { });
jest.spyOn(global.console, 'info').mockImplementation(() => { /* noop */ });
jest.spyOn(global, 'addEventListener').mockImplementation(jest.fn());
jest.spyOn(storage, 'getItem').mockImplementation((key: string, callback?: (err: unknown, value: unknown) => void) => {
const value = FAKE_STORE[key];
Expand Down Expand Up @@ -213,7 +213,7 @@ test('Sends payload without rt if no jwt can be made', async () => {
});

test('Sends payload when web crypto jwt fails', async () => {
const consoleErrorStub = jest.spyOn(global.console, 'error').mockImplementationOnce(() => { });
const consoleErrorStub = jest.spyOn(global.console, 'error').mockImplementationOnce(() => { /* noop */ });
createJwtStub.mockRejectedValueOnce('danger');
FAKE_STORE.rt = FAKE_RT;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createPromiEvent, PromiEvent } from '../../../../src/util/promise-tools';
import { createPromiEvent } from '../../../../src/util/promise-tools';
import { TypedEmitter } from '../../../../src/util/events';

type DefaultEvents<TResult> = {
Expand Down

0 comments on commit 070bb52

Please sign in to comment.