Instead of
const temp_name = getName({ name: 'GianGuido' })
const temp_name_upperCase = toUppercase(temp_name)
...
or
toUppercase(getName({ name: 'GianGuido' }))
You can now use something like:
const actual = pipe(
getName,
toUppercase,
get6Characters,
reverse
)({ name: 'GianGuido' });
Reference:
- Run
yarn lint
ornpm run lint
to lint the code. - Run
yarn format
ornpm run format
to format the code.
- Run
yarn test
ornpm run test
to execute all tests. - Run
yarn test:watch
ornpm run test:watch
to run tests in watch (loop) mode. - Run
yarn test:coverage
ornpm run test:coverage
to see the tests coverage report.