Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(app) {
this.app = app;
this._buildPath = path.join(app.path, 'dist');
this._build = fixturify.readSync(this._buildPath);
}
function assertDirectoriesAreEqual(actualDir, expectedDir) {
const actualFiles = fixturify.readSync(actualDir);
let expectedFiles;
try {
expectedFiles = fixturify.readSync(expectedDir);
} catch (err) {
expectedFiles = [];
}
assertFilesAreEqual(actualFiles, expectedFiles);
}
function assertDirectoriesAreEqual(actualDir, expectedDir) {
const actualFiles = fixturify.readSync(actualDir);
let expectedFiles;
try {
expectedFiles = fixturify.readSync(expectedDir);
} catch (err) {
expectedFiles = [];
}
assertFilesAreEqual(actualFiles, expectedFiles);
}