All files / src/lib cms.ts

100% Statements 4/4
50% Branches 1/2
100% Functions 2/2
100% Lines 4/4

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 11 12  1x 1x       1x     1x    
export async function fetchContent() {
  const res = undefined
  return res ? res : exampleResponse()
}
 
async function exampleResponse() {
  console.log(
    'Please replace this example response with a CMS call and error handling',
  )
  return { header: 'Hello World!', paragraph: 'Add your content here' }
}