Update ci.test.js

This commit is contained in:
lowlighter
2021-02-16 13:42:12 +01:00
parent 78fc34edd0
commit 3d464bfae9

View File

@@ -3,7 +3,7 @@
const git = require("simple-git")(path.join(__dirname, "..")) const git = require("simple-git")(path.join(__dirname, ".."))
//Check generated files editions //Check generated files editions
const diff = async () => (await git.diff("master...", ["--name-status"])).split("\n").map(x => x.trim()).filter(x => /^M\s+/.test(x)).map(x => x.replace(/^M\s+/, "")) const diff = async () => (await git.diff("origin/master...", ["--name-status"])).split("\n").map(x => x.trim()).filter(x => /^M\s+/.test(x)).map(x => x.replace(/^M\s+/, ""))
describe('Auto-generated files were not modified (use "git checkout @ -- file" if needed)', () => void test.each([ describe('Auto-generated files were not modified (use "git checkout @ -- file" if needed)', () => void test.each([
"README.md", "README.md",
"source/plugins/README.md", "source/plugins/README.md",