{"action":"created","issue":{"url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/57","labels_url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/57/comments","events_url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/57/events","html_url":"https://github.com/AstroCB/Stack-Exchange-Editor-Toolkit/pull/57","id":105778859,"number":57,"title":"Added a test suite","user":{"login":"nwinkler","id":907063,"avatar_url":"https://avatars.githubusercontent.com/u/907063?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinkler","html_url":"https://github.com/nwinkler","followers_url":"https://api.github.com/users/nwinkler/followers","following_url":"https://api.github.com/users/nwinkler/following{/other_user}","gists_url":"https://api.github.com/users/nwinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinkler/subscriptions","organizations_url":"https://api.github.com/users/nwinkler/orgs","repos_url":"https://api.github.com/users/nwinkler/repos","events_url":"https://api.github.com/users/nwinkler/events{/privacy}","received_events_url":"https://api.github.com/users/nwinkler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-10T10:22:59Z","updated_at":"2015-09-10T10:34:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/pulls/57","html_url":"https://github.com/AstroCB/Stack-Exchange-Editor-Toolkit/pull/57","diff_url":"https://github.com/AstroCB/Stack-Exchange-Editor-Toolkit/pull/57.diff","patch_url":"https://github.com/AstroCB/Stack-Exchange-Editor-Toolkit/pull/57.patch"},"body":"To run the more than 600 tests, do the following:\r\n\r\n* Install Node.js\r\n* Run `npm install` in the project directory to install the test dependencies\r\n* Run `npm test` to run the test suite. This will execute the 600+ unit tests for most of the replacements.\r\n\r\nI also fixed a couple of issues in the existing replacements:\r\n\r\n* Replacements now work in the middle of the sentence and at the end of a sentence.\r\n* Avoiding false positives like \"I use GitHub to work\", where nothing should be replaced. I made a change so that in this case the description is not updated.\r\n* Fixed upper case handling for \"Windows XP\" and \"Windows Vista\", where \"XP\" and \"Vista\" are corrected to use the correct case."},"comment":{"url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/comments/139200492","html_url":"https://github.com/AstroCB/Stack-Exchange-Editor-Toolkit/pull/57#issuecomment-139200492","issue_url":"https://api.github.com/repos/AstroCB/Stack-Exchange-Editor-Toolkit/issues/57","id":139200492,"user":{"login":"nwinkler","id":907063,"avatar_url":"https://avatars.githubusercontent.com/u/907063?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinkler","html_url":"https://github.com/nwinkler","followers_url":"https://api.github.com/users/nwinkler/followers","following_url":"https://api.github.com/users/nwinkler/following{/other_user}","gists_url":"https://api.github.com/users/nwinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinkler/subscriptions","organizations_url":"https://api.github.com/users/nwinkler/orgs","repos_url":"https://api.github.com/users/nwinkler/repos","events_url":"https://api.github.com/users/nwinkler/events{/privacy}","received_events_url":"https://api.github.com/users/nwinkler/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T10:34:50Z","updated_at":"2015-09-10T10:34:50Z","body":"Argh, sorry about that - I've fixed the links in `package.json` now.\r\n\r\nI had originally split this up over 40+ commits, but there was no clean way to squash that into smaller groups, since the creation of the test suite and the fixes were intermingled.\r\n\r\nI'm sure some of the regexes could be optimized, but that should be easier now with the test suite. When making changes, the test suite will be run and show any regression issues or breakages.\r\n\r\nCan you enable the Travis build on the project? I've added a badge to the `README.md` to show the build status. https://travis-ci.org/AstroCB/Stack-Exchange-Editor-Toolkit"}}