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

A test for examples #2216

Merged
merged 5 commits into from Mar 7, 2020
Merged

Conversation

RunDevelopment
Copy link
Member

@RunDevelopment RunDevelopment commented Feb 17, 2020

This includes two things:

The examples checks are now their own test file, so the example tests are now part of npm test and not the gulp premerge task. I can't remember why I made it part of permerge in the first place. No comments in #2128 either.

Added a new check to validate the example files. It's rather strict.


The main intention of strict validation is to make my life as a reviewer easier. Many people (myself included) will add example files with unescaped "<" characters and other problems.
Those problems are hard to spot for humans, so I made this test. It will also speed up the code review process because almost all people will figure out how to make the tests pass.

@RunDevelopment RunDevelopment merged commit 1f7a245 into PrismJS:master Mar 7, 2020
@RunDevelopment RunDevelopment deleted the examples-test branch March 7, 2020 10:53
quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
This adds a new test to validate the structure and syntax of all examples and moves the existing example test into the mocha test suite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants