MCPcopy Create free account
hub / github.com/error311/FileRise / normalizeCheckState

Function normalizeCheckState

public/js/adminPanel.js:1858–1859  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1856 (value === 'testing' || value === 'ok' || value === 'warning' || value === 'error') ? value : 'idle';
1857
1858 const normalizeCheckState = (value) =>
1859 (value === 'ok' || value === 'fail' || value === 'skipped' || value === 'unknown') ? value : 'unknown';
1860
1861 const normalizeTestChecks = (checks) => {
1862 if (!Array.isArray(checks)) return [];

Callers 2

normalizeTestChecksFunction · 0.85
getCapabilityStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected