mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
fix: keep plugin css below core utilities and version plugin assets by their css
This commit is contained in:
1 parent
80944301dd
commit
1a6f9ffad6
5 files changed
+92
-21
No files matched your search
@@ -63,6 +63,17 @@ describe("describePluginFrontend", () => {
|
||||
expect(info.locales).toEqual(["de_DE", "en"]);
|
||||
});
|
||||
|
||||
it("changes the version when only the stylesheet changes", () => {
|
||||
const before = describePluginFrontend(plugin).assetVersion;
|
||||
const css = path.join(root, "gizmo", "dist", "frontend.css");
|
||||
fs.writeFileSync(css, ".gizmo{color:red}");
|
||||
try {
|
||||
expect(describePluginFrontend(plugin).assetVersion).not.toBe(before);
|
||||
} finally {
|
||||
fs.writeFileSync(css, ".gizmo{}");
|
||||
}
|
||||
});
|
||||
|
||||
it("reports nothing for an unknown plugin", () => {
|
||||
expect(describePluginFrontend(undefined)).toEqual({
|
||||
frontend: false,
|
||||
|
||||
Reference in new issue
Block a user