This commit is contained in:
@@ -64,6 +64,7 @@ test('manifest v2 defines integrations and widgets', () => {
|
||||
assert.ok(manifest.integrations?.authoring);
|
||||
assert.ok(Array.isArray(manifest.widgets) && manifest.widgets.length >= 3);
|
||||
assert.ok(manifest.widgets.some(w => w.id === 'scripts-health'));
|
||||
assert.ok(manifest.widgets.some(w => w.id === 'system-resources' && w.type === 'systemResources'));
|
||||
});
|
||||
|
||||
test('manifest defines unique link and build ids', () => {
|
||||
@@ -155,6 +156,8 @@ test('dashboard module references manifest-driven API endpoints', () => {
|
||||
assert.match(dashboardJs, /data\/manifest\.json/);
|
||||
assert.match(dashboardJs, /\/api\/zone\/status/);
|
||||
assert.match(dashboardJs, /renderWidgets/);
|
||||
assert.match(dashboardJs, /systemResources/);
|
||||
assert.match(dashboardJs, /resourceRow/);
|
||||
assert.match(dashboardJs, /buildDomIds/);
|
||||
assert.doesNotMatch(dashboardJs, /build-roam/);
|
||||
assert.doesNotMatch(dashboardJs, /run-combined/);
|
||||
|
||||
Reference in New Issue
Block a user