All files runtimeValuePersistence.js

90% Statements 9/10
87.5% Branches 7/8
100% Functions 1/1
90% Lines 9/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 112x 12x 11x 11x 1x 1x 1x 1x   12x  
export function sanitizeRuntimeValuesForPersistence(className, runtimeValues) {
  if (!runtimeValues || typeof runtimeValues !== 'object' || Array.isArray(runtimeValues)) {
    return {};
  }
 
  if (className === 'View3D') {
    return {};
  }
  return { ...runtimeValues };
}