mirror of
https://github.com/zadam/trilium.git
synced 2025-12-29 19:49:58 +01:00
chore(server): address self-review
This commit is contained in:
@@ -39,7 +39,7 @@ async function register(app: express.Application) {
|
||||
} else {
|
||||
const publicDir = path.join(resourceDir, "public");
|
||||
if (!existsSync(publicDir)) {
|
||||
throw new Error(`Public directory is missing at: ${ path.resolve(publicDir)}`);
|
||||
throw new Error(`Public directory is missing at: ${path.resolve(publicDir)}`);
|
||||
}
|
||||
|
||||
app.use(`/${assetUrlFragment}/src`, persistentCacheStatic(path.join(publicDir, "src")));
|
||||
|
||||
@@ -138,7 +138,6 @@ describe("CSS generation", () => {
|
||||
expect(processedResult).toBeTruthy();
|
||||
const css = generateCss(processedResult!, `/api/attachments/${processedResult?.fontAttachmentId}/download`);
|
||||
|
||||
console.log(css);
|
||||
expect(css).toContain("@font-face");
|
||||
expect(css).toContain("font-family: 'trilium-icon-pack-bx'");
|
||||
expect(css).toContain(`src: url('/api/attachments/${processedResult?.fontAttachmentId}/download') format('woff2');`);
|
||||
|
||||
Reference in New Issue
Block a user