Function
verifyFile
(
info: ITarFileInfo,
content: string,
expected: { name: string; content: string },
)
Source from the content-addressed store, hash-verified
| 50 | }); |
| 51 | |
| 52 | function verifyFile( |
| 53 | info: ITarFileInfo, |
| 54 | content: string, |
| 55 | expected: { name: string; content: string }, |
| 56 | ) { |
| 57 | expect(info.name).toEqual(expected.name); |
| 58 | expect(info.size).toEqual(expected.content.length); |
| 59 | expect(content).toEqual(expected.content); |
| 60 | } |
| 61 | |
| 62 | function verifyFolder(info: ITarFileInfo, expected: { name: string }) { |
| 63 | expect(info.name).toEqual(expected.name); |
Tested by
no test coverage detected