Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ§ͺ Tests the bootstrap config has the flag

Alicia Sykes9218ab582262
diff --git a/tests/server/conf-strip.test.js b/tests/server/conf-strip.test.js
index 6b4aa805..c3eeba54 100644
--- a/tests/server/conf-strip.test.js
+++ b/tests/server/conf-strip.test.js
@@ -43,6 +43,8 @@ describe('OIDC strip behaviour for /conf.yml', () => {
const res = await request(app).get('/conf.yml');
expect(res.status).toBe(200);
const body = yamlLoad(res.text);
+ expect(body._bootstrap.authenticated).toBe(false);
+ expect(body._bootstrap.timestamp).toMatch(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/);
expect(body.appConfig.auth.enableOidc).toBe(true);
expect(body.appConfig.auth.oidc.clientId).toBe('dashy-test');
expect(body.appConfig.enableServiceWorker).toBe(true);