/lab-01-red-green-refactor

An exercise in refactoring.

Primary LanguageJavaScript

lab-01-red-green-refactor

// TODO getName - returns the name property of an object

copyAndPush - returns a new array with all the items in the original array and a new item pushed to the end

capitalizeAndFilter - returns an array of strings capitalized and filter out any that starts with f

fetchQuotes - returns one single quote with the format: { name:'', text:'', image: ''} from the futurama quote api

bonus: mocks - use jest.mock to mock node-fetch