Skip to content

Commit 1880f32

Browse files
author
Sascha Pfeiffer
committed
added mock for ClientJS
Signed-off-by: Sascha Pfeiffer <sascha.pfeiffer@psono.com>
1 parent c2a52b2 commit 1880f32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/setupTests.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ const localStorageMock = {
33
setItem: jest.fn(),
44
clear: jest.fn()
55
};
6-
global.localStorage = localStorageMock;
6+
global.localStorage = localStorageMock;
7+
8+
jest.mock('./services/clientjs', () => ({
9+
getFingerprint: () => { return 'dummy_fingerprint' }
10+
}));

0 commit comments

Comments
 (0)