Maybe you can split `index.js` into more function for unit test? If you use [prettier](https://github.com/prettier/prettier) with ESLint, that is even better