WeAreGenki/minna-ui

View on GitHub
utils/jest-config/fixtures/importable.mjs

Summary

Maintainability
Test Coverage
/**
 * Shout text by making it upper case.
 *
 * @param {string} text - Text to transform to upper case.
 * @returns {string} The input text in upper case.
 */
export function shout(text) {
  return text.toUpperCase();
}

/**
 * Whisper text by making it lower case.
 *
 * @param {string} text - Text to transform to lower case.
 * @returns {string} The input text in lower case.
 */
export function whisper(text) {
  return text.toLowerCase();
}