function contentDescription(content) {
  switch (content.type) {
    case 'url':
      return formatContentURL(content);
    case 'file':
      return 'PDF file in Canvas';
    case 'vitalsource':
      return 'Book from VitalSource';
    default:
      /* istanbul ignore next */
      throw new Error('Unknown content type');
  }
}
/**
 * Return a human-readable description of assignment content.
 *
 * @param {Content} content - Type and details of assignment content
 * @return {string}
 */
Return a human-readable description of assignment content.
@param {Content} content - Type and details of assignment content
@return {string}
Return a human - readable description of assignment content . @param { Content } content - Type and details of assignment content @return { string }
function contentDescription(content) {
  switch (content.type) {
    case 'url':
      return formatContentURL(content);
    case 'file':
      return 'PDF file in Canvas';
    case 'vitalsource':
      return 'Book from VitalSource';
    default:
      throw new Error('Unknown content type');
  }
}
function contentDescription ( content ) { switch ( content . type ) { case 'url' : return formatContentURL ( content ) ; case 'file' : return 'PDF file in Canvas' ; case 'vitalsource' : return 'Book from VitalSource' ; default : throw new Error ( 'Unknown content type' ) ; } }
Return a human-readable description of assignment content.
Return a human - readable description of assignment content .
/* istanbul ignore next */