(pathSource: string, pathTarget: string)
| 1013 | } |
| 1014 | }; |
| 1015 | export const addFakeUpdate = async (pathSource: string, pathTarget: string) => { |
| 1016 | const randomHexString = [...Array(100)].map(() => Math.floor(Math.random() * 16).toString(16)).join(""); |
| 1017 | const toAdd = [ |
| 1018 | { |
| 1019 | name: "whmm_update.txt", |
| 1020 | file_size: randomHexString.length, |
| 1021 | start_pos: 0, |
| 1022 | // is_compressed: 0, |
| 1023 | schemaFields: [{ type: "Buffer", fields: [{ type: "Buffer", val: Buffer.from(randomHexString) }] }], |
| 1024 | } as PackedFile, |
| 1025 | ]; |
| 1026 | await writeCopyPack(pathSource, pathTarget, toAdd); |
| 1027 | }; |
| 1028 | export const createOverwritePack = async ( |
| 1029 | pathSource: string, |
| 1030 | pathTarget: string, |
no test coverage detected