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

Adding unit tests for 'each .. of' #3183

Merged
merged 1 commit into from Sep 17, 2019
Merged

Conversation

maxrumsey
Copy link
Contributor

This PR adds unit tests for the 'each .. of' syntax, added in #3179.

It tests to ensure syntax like each [key, value of map does throw an error and that the intended usage does remain working. Two Jest snapshots have been added for the two tests that do output HTML.

The tests are located in /packages/pug/tests/eachOf/, but if there would be a better place for the tests I would be happy to move them to another folder.

@ForbesLindesay ForbesLindesay merged commit 48c69c9 into pugjs:master Sep 17, 2019
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.

None yet

2 participants