summaryrefslogtreecommitdiff
path: root/tests/specs/install/future_install_node_modules/corrupt.js
blob: f10384024fc087aa54b23bd12354a88298499b79 (plain)
1
2
3
4
5
const lock = JSON.parse(Deno.readTextFileSync("./deno.lock"));
const pkg = lock.npm["@denotest/esm-basic@1.0.0"];
// Corrupt the integrity hash
pkg.integrity = pkg.integrity.slice(0, -1);
Deno.writeTextFileSync("./deno.lock", JSON.stringify(lock));