Actually remove non used resources

This commit is contained in:
garronej
2023-08-24 08:58:00 +02:00
parent 3c2820dc31
commit 983af57842
9 changed files with 129 additions and 29 deletions

View File

@ -7,7 +7,8 @@ describe("Ensure it's able to extract used Keycloak resources", () => {
"resourcesCommonFilePaths": [
"node_modules/patternfly/dist/css/patternfly.min.css",
"node_modules/patternfly/dist/css/patternfly-additions.min.css",
"lib/zocial/zocial.css"
"lib/zocial/zocial.css",
"node_modules/jquery/dist/jquery.min.js"
],
"resourcesFilePaths": ["css/login.css"]
};
@ -28,6 +29,12 @@ describe("Ensure it's able to extract used Keycloak resources", () => {
"htmlClassName": getClassName("kcHtmlClass"),
"bodyClassName": undefined
});
const { prLoaded, remove } = headInsert({
"type": "javascript",
"src": \`\${kcContext.url.resourcesCommonPath}/node_modules/jquery/dist/jquery.min.js\`
});
`
});
@ -52,6 +59,11 @@ describe("Ensure it's able to extract used Keycloak resources", () => {
"bodyClassName": undefined
});
const { prLoaded, remove } = headInsert({
"type": "javascript",
"src": kcContext.url.resourcesCommonPath + "/node_modules/jquery/dist/jquery.min.js\"
});
`
});
@ -82,6 +94,11 @@ describe("Ensure it's able to extract used Keycloak resources", () => {
"bodyClassName": undefined
});
const { prLoaded, remove } = headInsert({
"type": "javascript",
"src": path.join(kcContext.url.resourcesCommonPath, "/node_modules/jquery/dist/jquery.min.js")
});
`
});