Skip to content

Commit 7c8c8a6

Browse files
Fix test
1 parent 54c6160 commit 7c8c8a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/core/Snaps/location/npm.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ jest.mock('react-native-blob-util', () => ({
55
fetch: jest.fn(() => ({
66
flush: jest.fn(),
77
data: '/document-dir/archive.tgz',
8+
respInfo: {
9+
status: 200,
10+
headers: {
11+
'content-length': 2000,
12+
},
13+
},
814
})),
915
})),
1016
fs: {
11-
dirs: { DocumentDir: '/document-dir/' },
1217
unlink: jest.fn().mockResolvedValue(undefined),
1318
isDir: jest.fn((path) => path.endsWith('archive') || path.endsWith('dist')),
1419
ls: jest.fn((path) => {

0 commit comments

Comments
 (0)