From 4f5b37047e364388ce53cbe9174e980fefcc1576 Mon Sep 17 00:00:00 2001 From: Sune Simonsen Date: Thu, 30 Aug 2018 20:06:19 +0200 Subject: [PATCH 1/4] Fix documentation typo --- documentation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0118f5a299a3b75241c09526a83d49aa3325fc71 Mon Sep 17 00:00:00 2001 From: Sune Simonsen Date: Sun, 14 Oct 2018 10:06:07 +0200 Subject: [PATCH 2/4] Added changelog --- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 CHANGELOG.md 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)) + From 9a5927c3b21843f177095070692d7c7c03b61ee2 Mon Sep 17 00:00:00 2001 From: Sune Simonsen Date: Sun, 14 Oct 2018 10:06:41 +0200 Subject: [PATCH 3/4] Lint, build, changelog, publish site when releasing --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 909c89e..bcd1242 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" + "travis": "npm run lint && npm run build", + "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", From ed055167b35b3c0335a5f56952a87b2246d360c0 Mon Sep 17 00:00:00 2001 From: Sune Simonsen Date: Sun, 14 Oct 2018 10:09:38 +0200 Subject: [PATCH 4/4] Run travis script on travis --- .travis.yml | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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/package.json b/package.json index bcd1242..26b2cf1 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "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", - "travis": "npm run lint && npm run build", + "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"