mirror of
https://gitlab.com/Thoscellen/Wallset.git
synced 2025-05-31 19:04:51 +02:00
Fixe "workingDirectory is not defined"
This commit is contained in:
parent
798f6de969
commit
6d0a52a5df
@ -13,6 +13,7 @@ const themeSchemaFile = "src/test_manifest_job/json_theme_schema.jsonc";
|
|||||||
let wppManifest;
|
let wppManifest;
|
||||||
let validator;
|
let validator;
|
||||||
let files;
|
let files;
|
||||||
|
let workingDirectory;
|
||||||
|
|
||||||
function leftOuterJoin(leftArray, rightArray) {
|
function leftOuterJoin(leftArray, rightArray) {
|
||||||
return leftArray.filter(function (el) {
|
return leftArray.filter(function (el) {
|
||||||
@ -40,7 +41,7 @@ describe('Mandatory Checks', function () {
|
|||||||
expect(slug).to.be.a("string").that.is.not.empty;
|
expect(slug).to.be.a("string").that.is.not.empty;
|
||||||
const root = process.env["ENTRY_FOLDER"];
|
const root = process.env["ENTRY_FOLDER"];
|
||||||
expect(root).to.be.a("string").that.is.not.empty;
|
expect(root).to.be.a("string").that.is.not.empty;
|
||||||
const workingDirectory = path.join(root, slug);
|
workingDirectory = path.join(root, slug);
|
||||||
const files = fs.readdirSync(workingDirectory);
|
const files = fs.readdirSync(workingDirectory);
|
||||||
expect(files).to.be.an('array').that.is.not.empty;
|
expect(files).to.be.an('array').that.is.not.empty;
|
||||||
validator = ajv.compile(JSON.parse(fs.readFileSync(themeSchemaFile, 'utf8')));
|
validator = ajv.compile(JSON.parse(fs.readFileSync(themeSchemaFile, 'utf8')));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user