tests: fix bug in prepare script

This commit is contained in:
Richard Moore 2023-04-28 20:14:46 +09:00
parent 35d0e0d976
commit 6d3639d91c

View File

@ -1,7 +1,7 @@
const fs = require("fs");
function replace(filename, key, value) {
const data = fs.readFileSync(filename).toString();
let data = fs.readFileSync(filename).toString();
data = data.replace(key, value);
fs.writeFileSync(filename, data);
}