image-colouriser
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -16,3 +16,3 @@ { | ||
"args": [ | ||
"--images ./test-resources", | ||
"--images ./test-resources/simple-structure", | ||
"--target ./test-results", | ||
@@ -19,0 +19,0 @@ "--css ./test-resources/coloured-theme.css" |
@@ -11,5 +11,4 @@ /// <reference types="node" /> | ||
readonly mkdir: (path: string) => Promise<void>; | ||
readonly delete_dir: typeof FS.promises.rmdir; | ||
readonly delete_file: (path: string) => Promise<void>; | ||
}; | ||
export default _default; |
@@ -137,6 +137,2 @@ "use strict"; | ||
get delete_dir() { | ||
return _fs.default.promises.rmdir; | ||
}, | ||
get delete_file() { | ||
@@ -165,3 +161,3 @@ var _this2 = this; | ||
_context3.next = 5; | ||
return _fs.default.promises.unlink(path); | ||
return _util.default.promisify(_fs.default.unlink)(path); | ||
@@ -185,2 +181,2 @@ case 5: | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maWxlLXN5c3RlbS50cyJdLCJuYW1lcyI6WyJzdGF0IiwiVVRJTCIsInByb21pc2lmeSIsIkZTIiwicmVhZF9kaXIiLCJwYXRoIiwicmVhZGRpciIsInAiLCJQQVRIIiwiam9pbiIsIm1hcCIsInJlYWRfdGV4dCIsInJlYWRGaWxlIiwicmVhZF9idWZmZXIiLCJ3cml0ZV9maWxlIiwiY29udGVudCIsIndyaXRlRmlsZSIsImV4aXN0cyIsIm1rZGlyIiwic2VwIiwiaW5pdERpciIsImlzQWJzb2x1dGUiLCJzcGxpdCIsInJlZHVjZSIsInBhcmVudERpciIsImNoaWxkRGlyIiwiY3VyRGlyIiwicmVzb2x2ZSIsImNvbnNvbGUiLCJsb2ciLCJleGlzdHNTeW5jIiwibWtkaXJTeW5jIiwiZGVsZXRlX2RpciIsInByb21pc2VzIiwicm1kaXIiLCJkZWxldGVfZmlsZSIsInVubGluayJdLCJtYXBwaW5ncyI6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BQQVRILmpvaW4ocGF0aCwgcCkpO1xuICB9LFxuICBnZXQgcmVhZF90ZXh0KCkge1xuICAgIHJldHVybiAocGF0aDogc3RyaW5nKSA9PiBVVElMLnByb21pc2lmeShGUy5yZWFkRmlsZSkocGF0aCwgXCJ1dGYtOFwiKTtcbiAgfSxcbiAgZ2V0IHJlYWRfYnVmZmVyKCkge1xuICAgIHJldHVybiAocGF0aDogc3RyaW5nKSA9PiBVVElMLnByb21pc2lmeShGUy5yZWFkRmlsZSkocGF0aCk7XG4gIH0sXG4gIGdldCB3cml0ZV9maWxlKCkge1xuICAgIHJldHVybiAoY29udGVudDogc3RyaW5nIHwgQnVmZmVyLCBwYXRoOiBzdHJpbmcpID0+XG4gICAgICBVVElMLnByb21pc2lmeShGUy53cml0ZUZpbGUpKHBhdGgsIGNvbnRlbnQpO1xuICB9LFxuICBnZXQgZXhpc3RzKCkge1xuICAgIHJldHVybiBVVElMLnByb21pc2lmeShGUy5leGlzdHMpO1xuICB9LFxuICBnZXQgbWtkaXIoKSB7XG4gICAgcmV0dXJuIGFzeW5jIChwYXRoOiBzdHJpbmcpID0+IHtcbiAgICAgIGlmICghKGF3YWl0IHRoaXMuZXhpc3RzKHBhdGgpKSkge1xuICAgICAgICBjb25zdCBzZXAgPSBQQVRILnNlcDtcbiAgICAgICAgY29uc3QgaW5pdERpciA9IFBBVEguaXNBYnNvbHV0ZShwYXRoKSA/IHNlcCA6IFwiXCI7XG4gICAgICAgIHBhdGguc3BsaXQoc2VwKS5yZWR1Y2UoKHBhcmVudERpciwgY2hpbGREaXIpID0+IHtcbiAgICAgICAgICBjb25zdCBjdXJEaXIgPSBQQVRILnJlc29sdmUocGFyZW50RGlyLCBjaGlsZERpcik7XG4gICAgICAgICAgY29uc29sZS5sb2coYERpciBOYW1lOiAke2N1ckRpcn1gKTtcbiAgICAgICAgICBpZiAoIUZTLmV4aXN0c1N5bmMoY3VyRGlyKSkge1xuICAgICAgICAgICAgY29uc29sZS5sb2coXCJDcmV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1dGYtOFwiKTtcbiAgfSxcbiAgZ2V0IHJlYWRfYnVmZmVyKCkge1xuICAgIHJldHVybiAocGF0aDogc3RyaW5nKSA9PiBVVElMLnByb21pc2lmeShGUy5yZWFkRmlsZSkocGF0aCk7XG4gIH0sXG4gIGdldCB3cml0ZV9maWxlKCkge1xuICAgIHJldHVybiAoY29udGVudDogc3RyaW5nIHwgQnVmZmVyLCBwYXRoOiBzdHJpbmcpID0+XG4gICAgICBVVElMLnByb21pc2lmeShGUy53cml0ZUZpbGUpKHBhdGgsIGNvbnRlbnQpO1xuICB9LFxuICBnZXQgZXhpc3RzKCkge1xuICAgIHJldHVybiBVVElMLnByb21pc2lmeShGUy5leGlzdHMpO1xuICB9LFxuICBnZXQgbWtkaXIoKSB7XG4gICAgcmV0dXJuIGFzeW5jIChwYXRoOiBzdHJpbmcpID0+IHtcbiAgICAgIGlmICghKGF3YWl0IHRoaXMuZXhpc3RzKHBhdGgpKSkge1xuICAgICAgICBjb25zdCBzZXAgPSBQQVRILnNlcDtcbiAgICAgICAgY29uc3QgaW5pdERpciA9IFBBVEguaXNBYnNvbHV0ZShwYXRoKSA/IHNlcCA6IFwiXCI7XG4gICAgICAgIHBhdGguc3BsaXQoc2VwKS5yZWR1Y2UoKHBhcmVudERpciwgY2hpbGREaXIpID0+IHtcbiAgICAgICAgICBjb25zdCBjdXJEaXIgPSBQQVRILnJlc29sdmUocGFyZW50RGlyLCBjaGlsZERpcik7XG4gICAgICAgICAgY29uc29sZS5sb2coYERpciBOYW1lOiAke2N1ckRpcn1gKTtcbiAgICAgICAgICBpZiAoIUZTLmV4aXN0c1N5bmMoY3VyRGlyKSkge1xuICAgICAgICAgICAgY29uc29sZS5sb2coXCJDcmVhdGVkXCIpO1xuICAgICAgICAgICAgRlMubWtkaXJTeW5jKGN1ckRpcik7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgcmV0dXJuIGN1ckRpcjtcbiAgICAgICAgfSwgaW5pdERpcik7XG4gICAgICB9XG4gICAgfTtcbiAgfSxcbiAgZ2V0IGRlbGV0ZV9maWxlKCkge1xuICAgIHJldHVybiBhc3luYyAocGF0aDogc3RyaW5nKSA9PiB7XG4gICAgICBpZiAoYXdhaXQgdGhpcy5leGlzdHMocGF0aCkpIHtcbiAgICAgICAgYXdhaXQgVVRJTC5wcm9taXNpZnkoRlMudW5saW5rKShwYXRoKTtcbiAgICAgIH1cbiAgICB9O1xuICB9XG59O1xuIl19 |
145
lib/index.js
@@ -23,7 +23,82 @@ "use strict"; | ||
function processDir(_x, _x2, _x3, _x4) { | ||
return _processDir.apply(this, arguments); | ||
} | ||
function _processDir() { | ||
_processDir = _asyncToGenerator( | ||
/*#__PURE__*/ | ||
regeneratorRuntime.mark(function _callee2(path, themeName, target, css) { | ||
var dir, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, file; | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
case 0: | ||
_context2.next = 2; | ||
return FILE.directory(path, themeName); | ||
case 2: | ||
dir = _context2.sent; | ||
_iteratorNormalCompletion = true; | ||
_didIteratorError = false; | ||
_iteratorError = undefined; | ||
_context2.prev = 6; | ||
for (_iterator = dir.files_recursive[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
file = _step.value; | ||
file.add_css(css); | ||
} | ||
_context2.next = 14; | ||
break; | ||
case 10: | ||
_context2.prev = 10; | ||
_context2.t0 = _context2["catch"](6); | ||
_didIteratorError = true; | ||
_iteratorError = _context2.t0; | ||
case 14: | ||
_context2.prev = 14; | ||
_context2.prev = 15; | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
case 17: | ||
_context2.prev = 17; | ||
if (!_didIteratorError) { | ||
_context2.next = 20; | ||
break; | ||
} | ||
throw _iteratorError; | ||
case 20: | ||
return _context2.finish(17); | ||
case 21: | ||
return _context2.finish(14); | ||
case 22: | ||
_context2.next = 24; | ||
return dir.save_images(target); | ||
case 24: | ||
case "end": | ||
return _context2.stop(); | ||
} | ||
} | ||
}, _callee2, this, [[6, 10, 14, 22], [15,, 17, 21]]); | ||
})); | ||
return _processDir.apply(this, arguments); | ||
} | ||
_asyncToGenerator( | ||
/*#__PURE__*/ | ||
regeneratorRuntime.mark(function _callee() { | ||
var schema, stream, images, target, cssLocation, css, dir, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, file; | ||
var schema, stream, images, target, cssLocation, css, themeName, themeFolder; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -136,58 +211,24 @@ while (1) { | ||
css = _context.sent; | ||
_context.next = 44; | ||
return FILE.directory(images, _path.default.basename(cssLocation).replace(".css", "")); | ||
themeName = _path.default.basename(cssLocation).replace(".css", ""); | ||
themeFolder = _path.default.join(_path.default.dirname(images), themeName); | ||
_context.next = 46; | ||
return _fileSystem.default.exists(themeFolder); | ||
case 44: | ||
dir = _context.sent; | ||
_iteratorNormalCompletion = true; | ||
_didIteratorError = false; | ||
_iteratorError = undefined; | ||
_context.prev = 48; | ||
for (_iterator = dir.files_recursive[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
file = _step.value; | ||
file.add_css(css); | ||
} | ||
_context.next = 56; | ||
break; | ||
case 52: | ||
_context.prev = 52; | ||
_context.t9 = _context["catch"](48); | ||
_didIteratorError = true; | ||
_iteratorError = _context.t9; | ||
case 56: | ||
_context.prev = 56; | ||
_context.prev = 57; | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
case 59: | ||
_context.prev = 59; | ||
if (!_didIteratorError) { | ||
_context.next = 62; | ||
case 46: | ||
if (!_context.sent) { | ||
_context.next = 49; | ||
break; | ||
} | ||
throw _iteratorError; | ||
_context.next = 49; | ||
return processDir(themeFolder, themeName, target, css); | ||
case 62: | ||
return _context.finish(59); | ||
case 49: | ||
_context.next = 51; | ||
return processDir(images, themeName, target, css); | ||
case 63: | ||
return _context.finish(56); | ||
case 64: | ||
_context.next = 66; | ||
return dir.save_images(target); | ||
case 66: | ||
case 51: | ||
process.exit(0); | ||
case 67: | ||
case 52: | ||
case "end": | ||
@@ -197,4 +238,4 @@ return _context.stop(); | ||
} | ||
}, _callee, this, [[48, 52, 56, 64], [57,, 59, 63]]); | ||
}, _callee, this); | ||
}))(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJGSUxFX1NZU1RFTSIsImV4aXN0cyIsIkpTT04iLCJyZWFkX3RleHQiLCJwYXJzZSIsInNjaGVtYSIsInN0cmVhbSIsIklPU1RSRUFNIiwiY3JlYXRlIiwicmVhZCIsIkFSR1VNRU5UUyIsImdldF9hcmd1bWVudCIsImFzayIsImltYWdlcyIsIndyaXRlIiwidGFyZ2V0IiwiY3NzIiwiY3NzTG9jYXRpb24iLCJjbG9zZSIsIkZJTEUiLCJkaXJlY3RvcnkiLCJQQVRIIiwiYmFzZW5hbWUiLCJyZXBsYWNlIiwiZGlyIiwiZmlsZXNfcmVjdXJzaXZlIiwiZmlsZSIsImFkZF9jc3MiLCJzYXZlX2ltYWdlcyIsInByb2Nlc3MiLCJleGl0Il0sIm1hcHBpbmdzIjoiOztBQUFBOztBQUNBOztBQUNBOztBQUNBOztBQUNBOztBQUNBOzs7Ozs7Ozs7O0FBU0E7QUFBQTtBQUFBLHdCQUFDO0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLGlCQUVVQSxvQkFBWUMsTUFBWixDQUFtQixlQUFuQixDQUZWOztBQUFBO0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUEsd0JBR0lDLElBSEo7QUFBQTtBQUFBLGlCQUdxQkYsb0JBQVlHLFNBQVosQ0FBc0IsZ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VEguYmFzZW5hbWUoY3NzTG9jYXRpb24pLnJlcGxhY2UoXCIuY3NzXCIsIFwiXCIpO1xuICBjb25zdCB0aGVtZUZvbGRlciA9IFBBVEguam9pbihQQVRILmRpcm5hbWUoaW1hZ2VzKSwgdGhlbWVOYW1lKTtcbiAgaWYgKGF3YWl0IEZJTEVfU1lTVEVNLmV4aXN0cyh0aGVtZUZvbGRlcikpIHtcbiAgICBhd2FpdCBwcm9jZXNzRGlyKHRoZW1lRm9sZGVyLCB0aGVtZU5hbWUsIHRhcmdldCwgY3NzKTtcbiAgfVxuXG4gIGF3YWl0IHByb2Nlc3NEaXIoaW1hZ2VzLCB0aGVtZU5hbWUsIHRhcmdldCwgY3NzKTtcbiAgcHJvY2Vzcy5leGl0KDApO1xufSkoKTtcbiJdfQ== |
@@ -19,3 +19,3 @@ "use strict"; | ||
describe("Integration", function () { | ||
afterEach( | ||
it("will render a simple coloured theme", | ||
/*#__PURE__*/ | ||
@@ -30,5 +30,73 @@ _asyncToGenerator( | ||
_context.next = 2; | ||
return Promise.all([_fileSystem.default.delete_file("./test-results/accessible.png"), _fileSystem.default.delete_file("./test-results/dashboard.png"), _fileSystem.default.delete_file("./test-results/dns.png"), _fileSystem.default.delete_file("./test-results/gradient.png"), _fileSystem.default.delete_file("./test-results/https.png"), _fileSystem.default.delete_file("./test-results/pngs/wallet.png"), _fileSystem.default.delete_file("./test-results/pngs/account.png"), _fileSystem.default.delete_file("./test-results/pngs/label.png")]); | ||
return new Promise(function (res, rej) { | ||
_child_process.default.exec("node . --images ./test-resources/simple-structure --target ./test-results/will-render-a-simple-coloured-theme --css ./test-resources/coloured-theme.css", function (e, r) { | ||
if (e) { | ||
rej(e); | ||
} | ||
res(r); | ||
}); | ||
}); | ||
case 2: | ||
_context.t0 = expect; | ||
_context.next = 5; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/accessible.png"); | ||
case 5: | ||
_context.t1 = _context.sent; | ||
(0, _context.t0)(_context.t1).toMatchImageSnapshot(); | ||
_context.t2 = expect; | ||
_context.next = 10; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/dashboard.png"); | ||
case 10: | ||
_context.t3 = _context.sent; | ||
(0, _context.t2)(_context.t3).toMatchImageSnapshot(); | ||
_context.t4 = expect; | ||
_context.next = 15; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/dns.png"); | ||
case 15: | ||
_context.t5 = _context.sent; | ||
(0, _context.t4)(_context.t5).toMatchImageSnapshot(); | ||
_context.t6 = expect; | ||
_context.next = 20; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/gradient.png"); | ||
case 20: | ||
_context.t7 = _context.sent; | ||
(0, _context.t6)(_context.t7).toMatchImageSnapshot(); | ||
_context.t8 = expect; | ||
_context.next = 25; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/https.png"); | ||
case 25: | ||
_context.t9 = _context.sent; | ||
(0, _context.t8)(_context.t9).toMatchImageSnapshot(); | ||
_context.t10 = expect; | ||
_context.next = 30; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/pngs/wallet.png"); | ||
case 30: | ||
_context.t11 = _context.sent; | ||
(0, _context.t10)(_context.t11).toMatchImageSnapshot(); | ||
_context.t12 = expect; | ||
_context.next = 35; | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-simple-coloured-theme/pngs/account.png"); | ||
case 35: | ||
_context.t13 = _context.sent; | ||
(0, _context.t12)(_context.t13).toMatchImageSnapshot(); | ||
_context.t14 = expect; | ||
_context.next = 40; | ||
return _fileSystem.default.exists("./test-results/will-render-a-simple-coloured-theme/pngs/label.png"); | ||
case 40: | ||
_context.t15 = _context.sent; | ||
(0, _context.t14)(_context.t15).toBe(false); | ||
_context.next = 44; | ||
return Promise.all([_fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/accessible.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/dashboard.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/dns.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/gradient.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/https.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/pngs/wallet.png"), _fileSystem.default.delete_file("./test-results/will-render-a-simple-coloured-theme/pngs/account.png")]); | ||
case 44: | ||
case "end": | ||
@@ -40,3 +108,3 @@ return _context.stop(); | ||
}))); | ||
it("will render a simple coloured theme", | ||
it("will render a stroke theme", | ||
/*#__PURE__*/ | ||
@@ -52,3 +120,3 @@ _asyncToGenerator( | ||
return new Promise(function (res, rej) { | ||
_child_process.default.exec("node . --images ./test-resources --target ./test-results --css ./test-resources/coloured-theme.css", function (e, r) { | ||
_child_process.default.exec("node . --images ./test-resources/simple-structure --target ./test-results/will-render-a-stroke-theme --css ./test-resources/stroke-theme.css", function (e, r) { | ||
if (e) { | ||
@@ -65,3 +133,3 @@ rej(e); | ||
_context2.next = 5; | ||
return _fileSystem.default.read_buffer("./test-results/accessible.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/accessible.png"); | ||
@@ -73,3 +141,3 @@ case 5: | ||
_context2.next = 10; | ||
return _fileSystem.default.read_buffer("./test-results/dashboard.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/dashboard.png"); | ||
@@ -81,3 +149,3 @@ case 10: | ||
_context2.next = 15; | ||
return _fileSystem.default.read_buffer("./test-results/dns.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/dns.png"); | ||
@@ -89,3 +157,3 @@ case 15: | ||
_context2.next = 20; | ||
return _fileSystem.default.read_buffer("./test-results/gradient.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/gradient.png"); | ||
@@ -97,3 +165,3 @@ case 20: | ||
_context2.next = 25; | ||
return _fileSystem.default.read_buffer("./test-results/https.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/https.png"); | ||
@@ -105,3 +173,3 @@ case 25: | ||
_context2.next = 30; | ||
return _fileSystem.default.read_buffer("./test-results/pngs/wallet.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/pngs/wallet.png"); | ||
@@ -113,3 +181,3 @@ case 30: | ||
_context2.next = 35; | ||
return _fileSystem.default.read_buffer("./test-results/pngs/account.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-render-a-stroke-theme/pngs/label.png"); | ||
@@ -121,3 +189,3 @@ case 35: | ||
_context2.next = 40; | ||
return _fileSystem.default.exists("./test-results/pngs/label.png"); | ||
return _fileSystem.default.exists("./test-results/will-render-a-stroke-theme/pngs/account.png"); | ||
@@ -127,4 +195,6 @@ case 40: | ||
(0, _context2.t14)(_context2.t15).toBe(false); | ||
_context2.next = 44; | ||
return Promise.all([_fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/accessible.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/dashboard.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/dns.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/gradient.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/https.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/pngs/wallet.png"), _fileSystem.default.delete_file("./test-results/will-render-a-stroke-theme/pngs/label.png")]); | ||
case 42: | ||
case 44: | ||
case "end": | ||
@@ -136,3 +206,3 @@ return _context2.stop(); | ||
}))); | ||
it("will render a stroke theme", | ||
it("will search next to the images path for theme folders", | ||
/*#__PURE__*/ | ||
@@ -148,3 +218,3 @@ _asyncToGenerator( | ||
return new Promise(function (res, rej) { | ||
_child_process.default.exec("node . --images ./test-resources --target ./test-results --css ./test-resources/stroke-theme.css", function (e, r) { | ||
_child_process.default.exec("node . --images ./test-resources/theme-folders/images --target ./test-results/will-search-next-to-the-images-path-for-theme-folders --css ./test-resources/coloured-theme.css", function (e, r) { | ||
if (e) { | ||
@@ -161,3 +231,3 @@ rej(e); | ||
_context3.next = 5; | ||
return _fileSystem.default.read_buffer("./test-results/accessible.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/accessible.png"); | ||
@@ -169,3 +239,3 @@ case 5: | ||
_context3.next = 10; | ||
return _fileSystem.default.read_buffer("./test-results/dashboard.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/dashboard.png"); | ||
@@ -177,3 +247,3 @@ case 10: | ||
_context3.next = 15; | ||
return _fileSystem.default.read_buffer("./test-results/dns.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/dns.png"); | ||
@@ -185,3 +255,3 @@ case 15: | ||
_context3.next = 20; | ||
return _fileSystem.default.read_buffer("./test-results/gradient.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/gradient.png"); | ||
@@ -193,3 +263,3 @@ case 20: | ||
_context3.next = 25; | ||
return _fileSystem.default.read_buffer("./test-results/https.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/https.png"); | ||
@@ -201,3 +271,3 @@ case 25: | ||
_context3.next = 30; | ||
return _fileSystem.default.read_buffer("./test-results/pngs/wallet.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/wallet.png"); | ||
@@ -209,3 +279,3 @@ case 30: | ||
_context3.next = 35; | ||
return _fileSystem.default.read_buffer("./test-results/pngs/label.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/label.png"); | ||
@@ -217,9 +287,11 @@ case 35: | ||
_context3.next = 40; | ||
return _fileSystem.default.exists("./test-results/pngs/account.png"); | ||
return _fileSystem.default.read_buffer("./test-results/will-search-next-to-the-images-path-for-theme-folders/account.png"); | ||
case 40: | ||
_context3.t15 = _context3.sent; | ||
(0, _context3.t14)(_context3.t15).toBe(false); | ||
(0, _context3.t14)(_context3.t15).toMatchImageSnapshot(); | ||
_context3.next = 44; | ||
return Promise.all([_fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/accessible.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/dashboard.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/dns.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/gradient.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/https.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/wallet.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/label.png"), _fileSystem.default.delete_file("./test-results/will-search-next-to-the-images-path-for-theme-folders/account.png")]); | ||
case 42: | ||
case 44: | ||
case "end": | ||
@@ -231,3 +303,90 @@ return _context3.stop(); | ||
}))); | ||
it("will not use other themes folders", | ||
/*#__PURE__*/ | ||
_asyncToGenerator( | ||
/*#__PURE__*/ | ||
regeneratorRuntime.mark(function _callee4() { | ||
return regeneratorRuntime.wrap(function _callee4$(_context4) { | ||
while (1) { | ||
switch (_context4.prev = _context4.next) { | ||
case 0: | ||
_context4.next = 2; | ||
return new Promise(function (res, rej) { | ||
_child_process.default.exec("node . --images ./test-resources/theme-folders/images --target ./test-results/will-not-use-other-themes-folders --css ./test-resources/stroke-theme.css", function (e, r) { | ||
if (e) { | ||
rej(e); | ||
} | ||
res(r); | ||
}); | ||
}); | ||
case 2: | ||
_context4.t0 = expect; | ||
_context4.next = 5; | ||
return _fileSystem.default.read_buffer("./test-results/will-not-use-other-themes-folders/accessible.png"); | ||
case 5: | ||
_context4.t1 = _context4.sent; | ||
(0, _context4.t0)(_context4.t1).toMatchImageSnapshot(); | ||
_context4.t2 = expect; | ||
_context4.next = 10; | ||
return _fileSystem.default.read_buffer("./test-results/will-not-use-other-themes-folders/dashboard.png"); | ||
case 10: | ||
_context4.t3 = _context4.sent; | ||
(0, _context4.t2)(_context4.t3).toMatchImageSnapshot(); | ||
_context4.t4 = expect; | ||
_context4.next = 15; | ||
return _fileSystem.default.read_buffer("./test-results/will-not-use-other-themes-folders/gradient.png"); | ||
case 15: | ||
_context4.t5 = _context4.sent; | ||
(0, _context4.t4)(_context4.t5).toMatchImageSnapshot(); | ||
_context4.t6 = expect; | ||
_context4.next = 20; | ||
return _fileSystem.default.read_buffer("./test-results/will-not-use-other-themes-folders/wallet.png"); | ||
case 20: | ||
_context4.t7 = _context4.sent; | ||
(0, _context4.t6)(_context4.t7).toMatchImageSnapshot(); | ||
_context4.t8 = expect; | ||
_context4.next = 25; | ||
return _fileSystem.default.read_buffer("./test-results/will-not-use-other-themes-folders/label.png"); | ||
case 25: | ||
_context4.t9 = _context4.sent; | ||
(0, _context4.t8)(_context4.t9).toMatchImageSnapshot(); | ||
_context4.t10 = expect; | ||
_context4.next = 30; | ||
return _fileSystem.default.exists("./test-results/will-not-use-other-themes-folders/dns.png"); | ||
case 30: | ||
_context4.t11 = _context4.sent; | ||
(0, _context4.t10)(_context4.t11).toBe(false); | ||
_context4.t12 = expect; | ||
_context4.next = 35; | ||
return _fileSystem.default.exists("./test-results/will-not-use-other-themes-folders/https.png"); | ||
case 35: | ||
_context4.t13 = _context4.sent; | ||
(0, _context4.t12)(_context4.t13).toBe(false); | ||
_context4.t14 = expect; | ||
_context4.next = 40; | ||
return _fileSystem.default.exists("./test-results/will-not-use-other-themes-folders/account.png"); | ||
case 40: | ||
_context4.t15 = _context4.sent; | ||
(0, _context4.t14)(_context4.t15).toBe(false); | ||
_context4.next = 44; | ||
return Promise.all([_fileSystem.default.delete_file("./test-results/will-not-use-other-themes-folders/accessible.png"), _fileSystem.default.delete_file("./test-results/will-not-use-other-themes-folders/dashboard.png"), _fileSystem.default.delete_file("./test-results/will-not-use-other-themes-folders/gradient.png"), _fileSystem.default.delete_file("./test-results/will-not-use-other-themes-folders/wallet.png"), _fileSystem.default.delete_file("./test-results/will-not-use-other-themes-folders/label.png")]); | ||
case 44: | ||
case "end": | ||
return _context4.stop(); | ||
} | ||
} | ||
}, _callee4, this); | ||
}))); | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbnRlZ3JhdGlvbi50ZXN0LnRzIl0sIm5hbWVzIjpbImV4cGVjdCIsImV4dGVuZCIsInRvTWF0Y2hJbWFnZVNuYXBzaG90IiwiSkVTVF9JTUFHRV9TTkFQU0hPVCIsImRlc2NyaWJlIiwiYWZ0ZXJFYWNoIiwiUHJvbWlzZSIsImFsbCIsIkZJTEVfU1lTVEVNIiwiZGVsZXRlX2ZpbGUiLCJpdCIsInJlcyIsInJlaiIsIkNISUxEX1BST0NFU1MiLCJleGVjIiwiZSIsInIiLCJyZWFkX2J1ZmZlciIsImV4aXN0cyIsInRvQmUiXSwibWFwcGluZ3MiOiI7O0FBQUE7O0FBQ0E7O0FBQ0E7Ozs7Ozs7O0FBRUFBLE1BQU0sQ0FBQ0MsTUFBUCxDQUFjO0FBQ1pDLEVBQUFBLG9CQUFvQixFQUFFQywyQkFBb0JEO0FBRDlCLENBQWQ7QUFJQUUsUUFBUSxDQUFDLGFBQUQsRUFBZ0IsWUFBTTtBQUM1QkMsRUFBQUEsU0FBUztBQUFBO0FBQUE7QUFBQTtBQUFBLDBCQUFDO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLG1CQUNGQyxPQUFPLENBQUNDLEdBQVIsQ0FBWSxDQUNoQkMsb0JBQVlDLFdBQVosQ0FBd0IsK0JBQXhCLENBRGdCLEVBRWhCRCxvQkFBWUMsV0FBWixDQUF3Qiw4QkFBeEIsQ0FGZ0IsRUFHaEJELG9CQUFZQyxXQUFaLENBQXdCLHdCQUF4QixD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5kZWxldGVfZmlsZShcbiAgICAgICAgXCIuL3Rlc3QtcmVzdWx0cy93aWxsLW5vdC11c2Utb3RoZXItdGhlbWVzLWZvbGRlcnMvd2FsbGV0LnBuZ1wiXG4gICAgICApLFxuICAgICAgRklMRV9TWVNURU0uZGVsZXRlX2ZpbGUoXG4gICAgICAgIFwiLi90ZXN0LXJlc3VsdHMvd2lsbC1ub3QtdXNlLW90aGVyLXRoZW1lcy1mb2xkZXJzL2xhYmVsLnBuZ1wiXG4gICAgICApXG4gICAgXSk7XG4gIH0pO1xufSk7XG4iXX0= |
{ | ||
"name": "image-colouriser", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "A tool for colouring a selection of images for a dev project", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -44,9 +44,6 @@ import FS from "fs"; | ||
}, | ||
get delete_dir() { | ||
return FS.promises.rmdir; | ||
}, | ||
get delete_file() { | ||
return async (path: string) => { | ||
if (await this.exists(path)) { | ||
await FS.promises.unlink(path); | ||
await UTIL.promisify(FS.unlink)(path); | ||
} | ||
@@ -53,0 +50,0 @@ }; |
@@ -15,2 +15,16 @@ import "@babel/polyfill"; | ||
async function processDir( | ||
path: string, | ||
themeName: string, | ||
target: string, | ||
css: string | ||
) { | ||
const dir = await FILE.directory(path, themeName); | ||
for (const file of dir.files_recursive) { | ||
file.add_css(css); | ||
} | ||
await dir.save_images(target); | ||
} | ||
(async () => { | ||
@@ -45,12 +59,10 @@ const schema = | ||
const css = await FILE_SYSTEM.read_text(cssLocation); | ||
const dir = await FILE.directory( | ||
images, | ||
PATH.basename(cssLocation).replace(".css", "") | ||
); | ||
for (const file of dir.files_recursive) { | ||
file.add_css(css); | ||
const themeName = PATH.basename(cssLocation).replace(".css", ""); | ||
const themeFolder = PATH.join(PATH.dirname(images), themeName); | ||
if (await FILE_SYSTEM.exists(themeFolder)) { | ||
await processDir(themeFolder, themeName, target, css); | ||
} | ||
await dir.save_images(target); | ||
await processDir(images, themeName, target, css); | ||
process.exit(0); | ||
})(); |
import FILE_SYSTEM from "./file-system"; | ||
import * as FILE from "./file"; | ||
import JEST_IMAGE_SNAPSHOT from "jest-image-snapshot"; | ||
@@ -10,19 +11,90 @@ import CHILD_PROCESS from "child_process"; | ||
describe("Integration", () => { | ||
afterEach(async () => { | ||
it("will render a simple coloured theme", async () => { | ||
// Act | ||
await new Promise<string>((res, rej) => { | ||
CHILD_PROCESS.exec( | ||
"node . --images ./test-resources/simple-structure --target ./test-results/will-render-a-simple-coloured-theme --css ./test-resources/coloured-theme.css", | ||
(e, r) => { | ||
if (e) { | ||
rej(e); | ||
} | ||
res(r); | ||
} | ||
); | ||
}); | ||
// Assert | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/accessible.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/dashboard.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/dns.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/gradient.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/https.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/pngs/wallet.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-simple-coloured-theme/pngs/account.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.exists( | ||
"./test-results/will-render-a-simple-coloured-theme/pngs/label.png" | ||
) | ||
).toBe(false); | ||
// Cleanup | ||
await Promise.all([ | ||
FILE_SYSTEM.delete_file("./test-results/accessible.png"), | ||
FILE_SYSTEM.delete_file("./test-results/dashboard.png"), | ||
FILE_SYSTEM.delete_file("./test-results/dns.png"), | ||
FILE_SYSTEM.delete_file("./test-results/gradient.png"), | ||
FILE_SYSTEM.delete_file("./test-results/https.png"), | ||
FILE_SYSTEM.delete_file("./test-results/pngs/wallet.png"), | ||
FILE_SYSTEM.delete_file("./test-results/pngs/account.png"), | ||
FILE_SYSTEM.delete_file("./test-results/pngs/label.png") | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/accessible.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/dashboard.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/dns.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/gradient.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/https.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/pngs/wallet.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-simple-coloured-theme/pngs/account.png" | ||
) | ||
]); | ||
}); | ||
it("will render a simple coloured theme", async () => { | ||
it("will render a stroke theme", async () => { | ||
await new Promise<string>((res, rej) => { | ||
CHILD_PROCESS.exec( | ||
"node . --images ./test-resources --target ./test-results --css ./test-resources/coloured-theme.css", | ||
"node . --images ./test-resources/simple-structure --target ./test-results/will-render-a-stroke-theme --css ./test-resources/stroke-theme.css", | ||
(e, r) => { | ||
@@ -39,32 +111,73 @@ if (e) { | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/accessible.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/accessible.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/dashboard.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/dashboard.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/dns.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/dns.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/gradient.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/gradient.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/https.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/https.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/pngs/wallet.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/pngs/wallet.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/pngs/account.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-render-a-stroke-theme/pngs/label.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect(await FILE_SYSTEM.exists("./test-results/pngs/label.png")).toBe( | ||
false | ||
); | ||
expect( | ||
await FILE_SYSTEM.exists( | ||
"./test-results/will-render-a-stroke-theme/pngs/account.png" | ||
) | ||
).toBe(false); | ||
// Cleanup | ||
await Promise.all([ | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/accessible.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/dashboard.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/dns.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/gradient.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/https.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/pngs/wallet.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-render-a-stroke-theme/pngs/label.png" | ||
) | ||
]); | ||
}); | ||
it("will render a stroke theme", async () => { | ||
it("will search next to the images path for theme folders", async () => { | ||
await new Promise<string>((res, rej) => { | ||
CHILD_PROCESS.exec( | ||
"node . --images ./test-resources --target ./test-results --css ./test-resources/stroke-theme.css", | ||
"node . --images ./test-resources/theme-folders/images --target ./test-results/will-search-next-to-the-images-path-for-theme-folders --css ./test-resources/coloured-theme.css", | ||
(e, r) => { | ||
@@ -81,27 +194,145 @@ if (e) { | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/accessible.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/accessible.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/dashboard.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/dashboard.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/dns.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/dns.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/gradient.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/gradient.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/https.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/https.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/pngs/wallet.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/wallet.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer("./test-results/pngs/label.png") | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/label.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/account.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect(await FILE_SYSTEM.exists("./test-results/pngs/account.png")).toBe( | ||
false | ||
); | ||
// Cleanup | ||
await Promise.all([ | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/accessible.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/dashboard.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/dns.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/gradient.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/https.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/wallet.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/label.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-search-next-to-the-images-path-for-theme-folders/account.png" | ||
) | ||
]); | ||
}); | ||
it("will not use other themes folders", async () => { | ||
await new Promise<string>((res, rej) => { | ||
CHILD_PROCESS.exec( | ||
"node . --images ./test-resources/theme-folders/images --target ./test-results/will-not-use-other-themes-folders --css ./test-resources/stroke-theme.css", | ||
(e, r) => { | ||
if (e) { | ||
rej(e); | ||
} | ||
res(r); | ||
} | ||
); | ||
}); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-not-use-other-themes-folders/accessible.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-not-use-other-themes-folders/dashboard.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-not-use-other-themes-folders/gradient.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-not-use-other-themes-folders/wallet.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.read_buffer( | ||
"./test-results/will-not-use-other-themes-folders/label.png" | ||
) | ||
).toMatchImageSnapshot(); | ||
expect( | ||
await FILE_SYSTEM.exists( | ||
"./test-results/will-not-use-other-themes-folders/dns.png" | ||
) | ||
).toBe(false); | ||
expect( | ||
await FILE_SYSTEM.exists( | ||
"./test-results/will-not-use-other-themes-folders/https.png" | ||
) | ||
).toBe(false); | ||
expect( | ||
await FILE_SYSTEM.exists( | ||
"./test-results/will-not-use-other-themes-folders/account.png" | ||
) | ||
).toBe(false); | ||
// Cleanup | ||
await Promise.all([ | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-not-use-other-themes-folders/accessible.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-not-use-other-themes-folders/dashboard.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-not-use-other-themes-folders/gradient.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-not-use-other-themes-folders/wallet.png" | ||
), | ||
FILE_SYSTEM.delete_file( | ||
"./test-results/will-not-use-other-themes-folders/label.png" | ||
) | ||
]); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175808
78
1994