hein 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@ Assertion library with focus on TypeScript
7
7
  * Full TypeScript support
8
8
  * Fuzzy matching for eql with any()
9
9
 
10
- * [Differences between Chai and Hein](DIFFERENCES_WITH_CHAI.md)
10
+ * [Differences between Chai and Hein](https://github.com/KristjanTammekivi/hein/blob/main/hein/DIFFERENCES_WITH_CHAI.md)
11
11
 
12
12
  ## Usage
13
13
 
@@ -101,6 +101,9 @@ expect(new Set()).to.be.empty();
101
101
  Assert that value deep equals the expectation
102
102
  ```typescript
103
103
  expect({ a: 1 }).to.eql({ a: 1 });
104
+
105
+ import { any } from 'hein';
106
+ expect({ a: 1, b: new Date() }).to.eql({ a: 1, b: any() })
104
107
  ```
105
108
 
106
109
  ##### eq
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hein",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },