Skip to content

Commit 1f8f7ed

Browse files
committed
[INTERNAL] fix tests
1 parent 4bebc3f commit 1f8f7ed

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

lib/processors/themeBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ThemeBuilder {
6868

6969
const libParams = new Resource({
7070
path: themeDir + "/library-parameters.json",
71-
string: JSON.stringify(result.variables, null, compress || compressJSON ? null : "\t")
71+
string: JSON.stringify(result.variables, null, (compress || compressJSON) ? null : "\t")
7272
});
7373

7474
files.push(libCss, libCssRtl, libParams);

lib/tasks/buildThemes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ module.exports = async function({workspace, dependencies, options}) {
5555

5656
resources = await allResources.filter(isAvailable);
5757
}
58+
const compress = options.compress !== false;
5859
const processedResources = await themeBuilder({
5960
resources,
6061
fs: fsInterface(combo),
6162
options: {
62-
compressJSON: true
63+
compressJSON: compress,
64+
compress: false
6365
}
6466
});
65-
const compress = options.compress !== false;
6667
if (compress) {
6768
const cssResources = processedResources.filter((resource) => {
6869
return resource.getPath().endsWith(".css");

test/expected/build/theme.j/dest/resources/theme/j/themes/somefancytheme/library-RTL.css

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"someColor":"#000"}
1+
{"someColor":"#000000"}

test/expected/build/theme.j/dest/resources/theme/j/themes/somefancytheme/library.css

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)