Skip to content

Commit 38a4fec

Browse files
Merge pull request #4 from angular-package/2.0.x
2.0.0-rc
2 parents 1286270 + 794c3e7 commit 38a4fec

22 files changed

+2232
-1462
lines changed

CHANGELOG.md

+44-21
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,52 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9-
## [1.1.0] - 2021-07-19
9+
## [2.0.0-rc] - 2022-01-30
1010

11-
### Added
11+
### [2.0.0-rc] Added
1212

13-
- [`77f326a`][77f326a]
14-
Abstract `TestingExpect` class to manage `expect()` function of jasmine.
13+
- Added `stringOfLengthBetween()` method of `TestingToBeMatchers`. [2854f54]
14+
- Added `randomNumber()` and `randomString()` helper functions. [cbe05f5]
15+
- Added `objectKeysIn()`, `objectSomeKeys()`, `stringIncludes()` and `stringIncludesSome()` methods of `TestingToBeMatchers`. [9af6d2f]
1516

16-
- [`afb98f5`][afb98f5]
17-
Class `TestingToBeMatchers` with matchers that use the `toBe()` method of `jasmine.Matchers`.
17+
[2854f54]: https://github.com/angular-package/testing/commit/2854f544873d8c8dade092a73377e1ab26417e83
18+
[cbe05f5]: https://github.com/angular-package/testing/commit/cbe05f5f21881878aa11f3ef7938c599a5e36ed3
1819

19-
- [`3bf2046`][3bf2046]
20-
Tests for the `TestingToBeMatchers`.
20+
### [2.0.0-rc] Changed
2121

22-
### Changed
22+
- Updated `stringOfLength()` to the single `length` parameter. [d82f066]
23+
- ~~Updated `numberBetween()` and `stringOfLength()` methods of `TestingToBeMatchers` to use `MinMax` interface from `@angular-package/type`.~~ [6af0073]
24+
- Change the parameters to `min` and `max` of `stringOfLength()` and `numberBetween()` method. [d82f066]
25+
- Updated default messages of `expectation fail output` and use `withContext()` method to display it. [9af6d2f]
26+
- Updated the `objectKey()`, `objectKeyIn()`, `objectKeys()` and ~~`numberBetween()`~~ methods cause of updated `@angular-package/type`. [9af6d2f]
27+
- Updated to a new **`@angular-package/type`**. [9af6d2f]
28+
- Changed the `key` property type from `Key | Key[]` to `PropertyKey` in the `objectKey()` `objectKeyIn()` methods.
29+
- Changed the `keys` property type from `Key[]` to `PropertyKey[]` in the `objectKeys()` method.
30+
- Updated the `execute` parameter to be optional by setting the default value to `true` for all methods. [dd18b84]
31+
- `Testing.prototype.toBeInstanceOfFunction()` method uses `instanceof` operator to validate. [dd18b84]
32+
33+
[d82f066]: https://github.com/angular-package/testing/commit/d82f0665a8befb2b9515ae8dbbd5807f6c96eb5b
34+
[d82f066]: https://github.com/angular-package/testing/commit/d82f0665a8befb2b9515ae8dbbd5807f6c96eb5b
35+
[6af0073]: https://github.com/angular-package/testing/commit/6af007350f267ee054a34d33ddf3b671d879b632
36+
[9af6d2f]: https://github.com/angular-package/testing/commit/9af6d2f2c482a903a2a55303e7fc05725741e9c0
37+
38+
### [2.0.0-rc] Removed
2339

24-
- [`4b81d0c`][4b81d0c] [`bdfbfe2`][bdfbfe2] [`8229336`][8229336] [`c17d11e`][c17d11e] [`9e0e368`][9e0e368]
25-
Update README.md with `TestingToBeMatchers`.
40+
- Removed unused `toBeResolved()` method. [dd18b84]
41+
42+
[dd18b84]: https://github.com/angular-package/testing/commit/dd18b8469c6099246f4e9f8a9ac9f9d891c6e1f8
43+
44+
## [1.1.0] - 2021-07-19
45+
46+
### Added [1.1.0]
47+
48+
- Abstract `TestingExpect` class to manage `expect()` function of jasmine. [`77f326a`][77f326a]
49+
- Class `TestingToBeMatchers` with matchers that use the `toBe()` method of `jasmine.Matchers`. [`afb98f5`][afb98f5]
50+
- Tests for the `TestingToBeMatchers`. [`3bf2046`][3bf2046]
51+
52+
### Changed [1.1.0]
53+
54+
- Update README.md with `TestingToBeMatchers`. [`4b81d0c`][4b81d0c] [`bdfbfe2`][bdfbfe2] [`8229336`][8229336] [`c17d11e`][c17d11e] [`9e0e368`][9e0e368]
2655

2756
[77f326a]: https://github.com/angular-package/testing/commit/77f326a5bc7154b55f6944e60b24cddb5bfe93df
2857
[afb98f5]: https://github.com/angular-package/testing/commit/afb98f557296239b10227e8f0bde4f8b62fd5049
@@ -37,19 +66,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3766

3867
### Changed
3968

40-
- [`10be25d`][10be25d]
41-
Change peerDependencies.
42-
43-
- [`58bdbad`][58bdbad]
44-
946803f Change the parameter `value` description.
69+
- Change peerDependencies. [`10be25d`][10be25d]
70+
- 946803f Change the parameter `value` description. [`58bdbad`][58bdbad]
4571

4672
### Fixed
4773

48-
- [`58bdbad`][58bdbad]
49-
Fix `toBe()` and `toEqual()` method by adding a generic `Value` instead of any.
50-
51-
- [`946803f`][946803f]
52-
Fix `instanceof` link in the README.md.
74+
- Fix `toBe()` and `toEqual()` method by adding a generic `Value` instead of any. [`58bdbad`][58bdbad]
75+
- Fix `instanceof` link in the README.md. [`946803f`][946803f]
5376

5477
[10be25d]: https://github.com/angular-package/testing/commit/10be25daffacf87f38b469b999cbb2b213fb90a1
5578
[58bdbad]: https://github.com/angular-package/testing/commit/58bdbadf4fc62aed1fac3680168bb8bb8e35e5dd

0 commit comments

Comments
 (0)