mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.9k stars 640 forks source link

test: add tests for types.Date #2125

Closed coolsoftwaretyler closed 7 months ago

coolsoftwaretyler commented 7 months ago

What does this PR do and why?

Adds unit tests for types.Date, much like #2124, #2123, and #2121.

I've done some copy/pasting through these PRs, so this also updates a few typos from that process. types.Date is a little weirder since we can take numbers or Date objects for instantiation, but overall it has a similar structure.

Steps to validate locally

Since this is just adding tests, I'm going to merge it in once CI passes. yarn test should be all green.