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

Compare against example json as source of truth #11

Merged
merged 2 commits into from
May 15, 2022

Conversation

dmfxyz
Copy link
Contributor

@dmfxyz dmfxyz commented May 15, 2022

Basic implementation addressing #9.

This is ready for review and feedback.

test.js Outdated

test('json comparison', t=> {
const json_o = JSON.parse(readFileSync("./exampledata/example.json"))
const jams_o = jams(String(readFileSync('./exampledata/example.jams')))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come we need to have this String cast? Probably we should do this inside of jams, the usage should be just like JSON.parse

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Will move.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was needed because easygram wasn't parsing the Buffer correctly.

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

Successfully merging this pull request may close these issues.

2 participants