{"push_id":3099561928,"size":2,"distinct_size":2,"ref":"refs/heads/practice_request","head":"7ecdc61d83fe4fc5a3ce74517ada3065a6099f48","before":"2ef232e1e73c7f3009c1a701cef004538b6bd3ed","commits":[{"sha":"5f51d00dfccb06dc023b0a68037cc7310b3f5f8e","author":{"name":"Sanghee Kim","email":"7a34f3432f3358a23bbef903a3b7475095eb48bc@gmail.com"},"message":"seperate computing fullname and api request part\n\nisolate computing part from the other part then it is easy to be\ntested.","distinct":true,"url":"https://api.github.com/repos/sangheestyle/naive-ts-starter/commits/5f51d00dfccb06dc023b0a68037cc7310b3f5f8e"},{"sha":"7ecdc61d83fe4fc5a3ce74517ada3065a6099f48","author":{"name":"Sanghee Kim","email":"7a34f3432f3358a23bbef903a3b7475095eb48bc@gmail.com"},"message":"show stat: average first name length\n\nWanted to know how to mock and test promises and error\n\nWhat I need to know:\n\na. toThrowError is used for comparing error message\nb. toThrow is used for comparing error\n\nc. if (!array.length) can be used for check empty array. Don't\nbe confused with !array.\n\nd. throw new Error not throw Error because Error is class so it\nneeds to be instantiated before throwing it.\n\ne. reduce can be used for sum with the following:\n[1, 2, 3].reduce((a, b) => a + b, 0);\n\nIt is much more similar to that of python.","distinct":true,"url":"https://api.github.com/repos/sangheestyle/naive-ts-starter/commits/7ecdc61d83fe4fc5a3ce74517ada3065a6099f48"}]}
{"actor":{"display_login":"sangheestyle"}}