Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override toJSON to ensure JSON.stringify returns something sane #2

Open
timReynolds opened this issue Aug 26, 2017 · 0 comments
Open

Comments

@timReynolds
Copy link
Owner

As the classes here are deigned to encapsulate data we should add some test cases around JSON.stringify to ensure it returns the designed outcome.

If not let's override the behaviour using the toJSON function on the entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant