From 8cf8736cabf202b7437a2cfc308b219d2ce1642a Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 24 Aug 2017 11:41:41 -0700 Subject: [PATCH] bump version to 2.8.0 --- lib/jasmine-core/jasmine.js | 24 ++++++++++++++++- lib/jasmine-core/version.rb | 2 +- package.json | 2 +- release_notes/2.8.0.md | 52 +++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 release_notes/2.8.0.md diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index a765e15c..86926638 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -93,6 +93,7 @@ var getJasmineRequireObj = (function (jasmineGlobal) { getJasmineRequireObj().requireMatchers = function(jRequire, j$) { var availableMatchers = [ + 'nothing', 'toBe', 'toBeCloseTo', 'toBeDefined', @@ -2884,6 +2885,27 @@ getJasmineRequireObj().matchersUtil = function(j$) { } }; +getJasmineRequireObj().nothing = function() { + /** + * {@link expect} nothing explicitly. + * @function + * @name matchers#nothing + * @example + * expect().nothing(); + */ + function nothing() { + return { + compare: function() { + return { + pass: true + }; + } + }; + } + + return nothing; +}; + getJasmineRequireObj().NullDiffBuilder = function(j$) { return function() { return { @@ -5359,5 +5381,5 @@ getJasmineRequireObj().UserContext = function(j$) { }; getJasmineRequireObj().version = function() { - return '2.7.0'; + return '2.8.0'; }; diff --git a/lib/jasmine-core/version.rb b/lib/jasmine-core/version.rb index bceb7859..b91a9e70 100644 --- a/lib/jasmine-core/version.rb +++ b/lib/jasmine-core/version.rb @@ -4,6 +4,6 @@ # module Jasmine module Core - VERSION = "2.7.0" + VERSION = "2.8.0" end end diff --git a/package.json b/package.json index 1683d62b..8fb199c9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jasmine-core", "license": "MIT", - "version": "2.7.0", + "version": "2.8.0", "repository": { "type": "git", "url": "https://github.com/jasmine/jasmine.git" diff --git a/release_notes/2.8.0.md b/release_notes/2.8.0.md new file mode 100644 index 00000000..e0cfd26c --- /dev/null +++ b/release_notes/2.8.0.md @@ -0,0 +1,52 @@ +# Jasmine 2.8.0 Release Notes + +## Summary + +This release contains a number of fixes and pull requests. +2.8 should be the last 2.x release of Jasmine, as we aim for 3.0. + +## Changes + +* Create CODE_OF_CONDUCT.md +* Add jsdocs for reporter events +* Update jsApiReporter docs to link to new suite and spec results +* Add explicit docs for the callback function passed to `it` etc. +* Update afterAll documentation + +## Pull Requests & Issues + +* Add 'nothing' matcher and tests + - Merges [#1412](https://github.com/jasmine/jasmine/issues/1412) from @ksvitkovsky + - Fixes [#1221](https://github.com/jasmine/jasmine/issues/1221) + + +* Make toEqual matcher report the difference between array elements when arrays have different length + - Closes [#1375](https://github.com/jasmine/jasmine/issues/1375) from @kiewic + + +* Add arrayWithExactContents asymmetric matcher + - Fixes [#817](https://github.com/jasmine/jasmine/issues/817) + + +* Ensure no message added on asym. match success + - Closes [#1408](https://github.com/jasmine/jasmine/issues/1408) from @ksvitkovsky + - Fixes [#1388](https://github.com/jasmine/jasmine/issues/1388) + + +* Better primitives detection for saveArgsByValue + - Closes [#1407](https://github.com/jasmine/jasmine/issues/1407) from @ksvitkovsky + - Fixes [#1403](https://github.com/jasmine/jasmine/issues/1403) + + +* Better pretty printing for typed arrays + - Closes [#1404](https://github.com/jasmine/jasmine/issues/1404) from @ksvitkovsky + - Fixes [#1180](https://github.com/jasmine/jasmine/issues/1180) + + +* Rewrite ES6 Set and Map comparison to ignore insertion order + - Merges [#1406](https://github.com/jasmine/jasmine/issues/1406) from @theefer + - Fixes [#1402](https://github.com/jasmine/jasmine/issues/1402) + +------ + +_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_