Tag: moment.js
I'm going to talk about unit tests here, not any other kind of tests. And unit tests have, in my opinion, the following list of criteria that they have to meet. This list makes it hard to write tests for code that use external libraries.
It's known that moment.js is a widely used library for date and time manipulations. Obviously it is the case because of the limitations of standard JavaScript API, but today we're not going to judge standard language features. Let's accept the insufficiency of built-in tools and investigate whether or not I can replace moment.js with a smaller library.