You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have npm scripts in our package.json file that run automated linting via Travis CI. This is good.
Ideally we could improve this with some automated tests for AnchorJS functionality. We could do this by using PhantomJS (which is available on TravisCI), writing tests with QUnit, and connecting the pieces with Grunt, as described in this post.
The existing index.html page is a starting place for a good test page. It already has examples of headings with IDs, without IDs, and those that could generate duplicate IDs.
The text was updated successfully, but these errors were encountered:
We currently have npm scripts in our
package.json
file that run automated linting via Travis CI. This is good.Ideally we could improve this with some automated tests for AnchorJS functionality. We could do this by using PhantomJS (which is available on TravisCI), writing tests with QUnit, and connecting the pieces with Grunt, as described in this post.
The existing index.html page is a starting place for a good test page. It already has examples of headings with IDs, without IDs, and those that could generate duplicate IDs.
The text was updated successfully, but these errors were encountered: