diff --git a/.travis.yml b/.travis.yml index 256289b..2b9f504 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ node_js: - "6" - "8" - "9" + +script: "npm run-script travis" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b225231 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,41 @@ +### v2.0.0 (2018-08-11) + +- [#15](https://github.com/unexpectedjs/unexpected-check/pull/15) Updated for compatibility with the new major version of chance-generators (Major) ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.19.0 (2018-08-11) + +- [#14](https://github.com/unexpectedjs/unexpected-check/pull/14) Use proximity as a feedback loop ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.18.0 (2018-01-13) + +- [#13](https://github.com/unexpectedjs/unexpected-check/pull/13) Use of conditional proximity ([Andreas Lind](mailto:andreas.lind@peakon.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.17.0 (2018-01-08) + +- [#12](https://github.com/unexpectedjs/unexpected-check/pull/12) I found that is yields better to results to start using the feedback quicker ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.16.0 (2018-01-08) + +- [#11](https://github.com/unexpectedjs/unexpected-check/pull/11) Report when the first error was found. ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.15.0 (2018-01-06) + +- [#10](https://github.com/unexpectedjs/unexpected-check/pull/10) Increase the maxError default ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.14.0 (2017-12-13) + +- [#9](https://github.com/unexpectedjs/unexpected-check/pull/9) Property based whitebox testing ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.10.0 (2016-08-04) + +- [#4](https://github.com/unexpectedjs/unexpected-check/pull/4) Add 'when fuzzed by' helper assertion. ([Andreas Lind](mailto:andreas@one.com), [Sune Simonsen](mailto:sune@we-knowhow.dk)) +- [#6](https://github.com/unexpectedjs/unexpected-check/pull/6) Added 'repository' url in package.json ([Priyank Parashar](mailto:paras20xx@users.noreply.github.com)) + +### v1.9.0 (2016-07-17) + +- [#5](https://github.com/unexpectedjs/unexpected-check/pull/5) Print out the generators that was used to generated the failing input ([Sune Simonsen](mailto:sune@we-knowhow.dk)) + +### v1.8.0 (2016-07-17) + +- [#3](https://github.com/unexpectedjs/unexpected-check/pull/3) Support specifying the default max number of iterations ([Andreas Lind](mailto:andreas@one.com)) + diff --git a/documentation/index.md b/documentation/index.md index 293e4f0..b3d188c 100644 --- a/documentation/index.md +++ b/documentation/index.md @@ -89,7 +89,7 @@ expect((arr) => { }, 'to be valid for all', numbers); ``` -But that assumption as actually not true as the build-in sort functions is based +But that assumption is actually not true as the build-in sort functions is based on converting items to strings and comparing them. So you will get the following error: ```output diff --git a/package.json b/package.json index 909c89e..26b2cf1 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,15 @@ "version": "2.0.0", "main": "lib/unexpected-check.js", "scripts": { + "changelog": "offline-github-changelog > CHANGELOG.md", "generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js", "lint": "eslint .", "lint-staged": "lint-staged", - "test": "npm run lint && mocha test/**/*.spec.js documentation/**/*.md", - "update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples" + "test": "mocha test/**/*.spec.js documentation/**/*.md", + "travis": "npm run lint && npm test", + "update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples", + "preversion": "npm run lint && npm run test && npm run build && git add unexpected-dom.*", + "postversion": "npm run changelog && git add CHANGELOG.md && git commit --allow-empty -m 'Update changelog' && deploy-site.sh" }, "dependencies": { "escodegen": "^1.9.0", @@ -35,6 +39,7 @@ "lodash.escape": "3.1.0", "lodash.unescape": "3.1.0", "mocha": "2.3.4", + "offline-github-changelog": "1.2.0", "pre-commit": "1.2.2", "prettier": "1.10.1", "prettier-package-json": "1.4.0",