hein 1.3.5 → 1.3.6

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 (228) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/DIFFERENCES_WITH_CHAI.md +49 -0
  3. package/dist/utils/fail.d.ts +1 -1
  4. package/dist/utils/fail.d.ts.map +1 -1
  5. package/dist/utils/fail.js +2 -2
  6. package/dist/utils/fail.js.map +1 -1
  7. package/package.json +5 -8
  8. package/dist/.tsbuildinfo +0 -1
  9. package/dist/assert/deep-equal.test.d.ts +0 -2
  10. package/dist/assert/deep-equal.test.d.ts.map +0 -1
  11. package/dist/assert/deep-equal.test.js +0 -128
  12. package/dist/assert/deep-equal.test.js.map +0 -1
  13. package/dist/assert/deep-has-property.test.d.ts +0 -2
  14. package/dist/assert/deep-has-property.test.d.ts.map +0 -1
  15. package/dist/assert/deep-has-property.test.js +0 -40
  16. package/dist/assert/deep-has-property.test.js.map +0 -1
  17. package/dist/assert/ends-with.test.d.ts +0 -2
  18. package/dist/assert/ends-with.test.d.ts.map +0 -1
  19. package/dist/assert/ends-with.test.js +0 -24
  20. package/dist/assert/ends-with.test.js.map +0 -1
  21. package/dist/assert/equal.test.d.ts +0 -2
  22. package/dist/assert/equal.test.d.ts.map +0 -1
  23. package/dist/assert/equal.test.js +0 -57
  24. package/dist/assert/equal.test.js.map +0 -1
  25. package/dist/assert/greater-than-equal.test.d.ts +0 -2
  26. package/dist/assert/greater-than-equal.test.d.ts.map +0 -1
  27. package/dist/assert/greater-than-equal.test.js +0 -17
  28. package/dist/assert/greater-than-equal.test.js.map +0 -1
  29. package/dist/assert/greater-than.test.d.ts +0 -2
  30. package/dist/assert/greater-than.test.d.ts.map +0 -1
  31. package/dist/assert/greater-than.test.js +0 -31
  32. package/dist/assert/greater-than.test.js.map +0 -1
  33. package/dist/assert/has-members.test.d.ts +0 -2
  34. package/dist/assert/has-members.test.d.ts.map +0 -1
  35. package/dist/assert/has-members.test.js +0 -85
  36. package/dist/assert/has-members.test.js.map +0 -1
  37. package/dist/assert/has-property.test.d.ts +0 -2
  38. package/dist/assert/has-property.test.d.ts.map +0 -1
  39. package/dist/assert/has-property.test.js +0 -40
  40. package/dist/assert/has-property.test.js.map +0 -1
  41. package/dist/assert/has-size.test.d.ts +0 -2
  42. package/dist/assert/has-size.test.d.ts.map +0 -1
  43. package/dist/assert/has-size.test.js +0 -171
  44. package/dist/assert/has-size.test.js.map +0 -1
  45. package/dist/assert/in-ballpark.test.d.ts +0 -2
  46. package/dist/assert/in-ballpark.test.d.ts.map +0 -1
  47. package/dist/assert/in-ballpark.test.js +0 -36
  48. package/dist/assert/in-ballpark.test.js.map +0 -1
  49. package/dist/assert/includes.test.d.ts +0 -2
  50. package/dist/assert/includes.test.d.ts.map +0 -1
  51. package/dist/assert/includes.test.js +0 -45
  52. package/dist/assert/includes.test.js.map +0 -1
  53. package/dist/assert/instance-of.test.d.ts +0 -2
  54. package/dist/assert/instance-of.test.d.ts.map +0 -1
  55. package/dist/assert/instance-of.test.js +0 -24
  56. package/dist/assert/instance-of.test.js.map +0 -1
  57. package/dist/assert/is-after.test.d.ts +0 -2
  58. package/dist/assert/is-after.test.d.ts.map +0 -1
  59. package/dist/assert/is-after.test.js +0 -32
  60. package/dist/assert/is-after.test.js.map +0 -1
  61. package/dist/assert/is-before.test.d.ts +0 -2
  62. package/dist/assert/is-before.test.d.ts.map +0 -1
  63. package/dist/assert/is-before.test.js +0 -32
  64. package/dist/assert/is-before.test.js.map +0 -1
  65. package/dist/assert/is-between.test.d.ts +0 -2
  66. package/dist/assert/is-between.test.d.ts.map +0 -1
  67. package/dist/assert/is-between.test.js +0 -47
  68. package/dist/assert/is-between.test.js.map +0 -1
  69. package/dist/assert/is-empty.test.d.ts +0 -2
  70. package/dist/assert/is-empty.test.d.ts.map +0 -1
  71. package/dist/assert/is-empty.test.js +0 -80
  72. package/dist/assert/is-empty.test.js.map +0 -1
  73. package/dist/assert/is-type.test.d.ts +0 -2
  74. package/dist/assert/is-type.test.d.ts.map +0 -1
  75. package/dist/assert/is-type.test.js +0 -36
  76. package/dist/assert/is-type.test.js.map +0 -1
  77. package/dist/assert/less-than-equal.test.d.ts +0 -2
  78. package/dist/assert/less-than-equal.test.d.ts.map +0 -1
  79. package/dist/assert/less-than-equal.test.js +0 -51
  80. package/dist/assert/less-than-equal.test.js.map +0 -1
  81. package/dist/assert/less-than.test.d.ts +0 -2
  82. package/dist/assert/less-than.test.d.ts.map +0 -1
  83. package/dist/assert/less-than.test.js +0 -28
  84. package/dist/assert/less-than.test.js.map +0 -1
  85. package/dist/assert/match.test.d.ts +0 -2
  86. package/dist/assert/match.test.d.ts.map +0 -1
  87. package/dist/assert/match.test.js +0 -24
  88. package/dist/assert/match.test.js.map +0 -1
  89. package/dist/assert/rejects.test.d.ts +0 -2
  90. package/dist/assert/rejects.test.d.ts.map +0 -1
  91. package/dist/assert/rejects.test.js +0 -101
  92. package/dist/assert/rejects.test.js.map +0 -1
  93. package/dist/assert/round-to.test.d.ts +0 -2
  94. package/dist/assert/round-to.test.d.ts.map +0 -1
  95. package/dist/assert/round-to.test.js +0 -33
  96. package/dist/assert/round-to.test.js.map +0 -1
  97. package/dist/assert/starts-with.test.d.ts +0 -2
  98. package/dist/assert/starts-with.test.d.ts.map +0 -1
  99. package/dist/assert/starts-with.test.js +0 -24
  100. package/dist/assert/starts-with.test.js.map +0 -1
  101. package/dist/assert/throws.test.d.ts +0 -2
  102. package/dist/assert/throws.test.d.ts.map +0 -1
  103. package/dist/assert/throws.test.js +0 -174
  104. package/dist/assert/throws.test.js.map +0 -1
  105. package/dist/expect/after.test.d.ts +0 -2
  106. package/dist/expect/after.test.d.ts.map +0 -1
  107. package/dist/expect/after.test.js +0 -26
  108. package/dist/expect/after.test.js.map +0 -1
  109. package/dist/expect/ballpark.test.d.ts +0 -2
  110. package/dist/expect/ballpark.test.d.ts.map +0 -1
  111. package/dist/expect/ballpark.test.js +0 -26
  112. package/dist/expect/ballpark.test.js.map +0 -1
  113. package/dist/expect/before.test.d.ts +0 -2
  114. package/dist/expect/before.test.d.ts.map +0 -1
  115. package/dist/expect/before.test.js +0 -26
  116. package/dist/expect/before.test.js.map +0 -1
  117. package/dist/expect/between.test.d.ts +0 -2
  118. package/dist/expect/between.test.d.ts.map +0 -1
  119. package/dist/expect/between.test.js +0 -34
  120. package/dist/expect/between.test.js.map +0 -1
  121. package/dist/expect/empty.test.d.ts +0 -2
  122. package/dist/expect/empty.test.d.ts.map +0 -1
  123. package/dist/expect/empty.test.js +0 -24
  124. package/dist/expect/empty.test.js.map +0 -1
  125. package/dist/expect/end-with.test.d.ts +0 -2
  126. package/dist/expect/end-with.test.d.ts.map +0 -1
  127. package/dist/expect/end-with.test.js +0 -15
  128. package/dist/expect/end-with.test.js.map +0 -1
  129. package/dist/expect/eql.test.d.ts +0 -2
  130. package/dist/expect/eql.test.d.ts.map +0 -1
  131. package/dist/expect/eql.test.js +0 -42
  132. package/dist/expect/eql.test.js.map +0 -1
  133. package/dist/expect/equal-shorthand.test.d.ts +0 -2
  134. package/dist/expect/equal-shorthand.test.d.ts.map +0 -1
  135. package/dist/expect/equal-shorthand.test.js +0 -34
  136. package/dist/expect/equal-shorthand.test.js.map +0 -1
  137. package/dist/expect/equal.test.d.ts +0 -2
  138. package/dist/expect/equal.test.d.ts.map +0 -1
  139. package/dist/expect/equal.test.js +0 -30
  140. package/dist/expect/equal.test.js.map +0 -1
  141. package/dist/expect/excluding.test.d.ts +0 -2
  142. package/dist/expect/excluding.test.d.ts.map +0 -1
  143. package/dist/expect/excluding.test.js +0 -12
  144. package/dist/expect/excluding.test.js.map +0 -1
  145. package/dist/expect/greater-than-equal.test.d.ts +0 -2
  146. package/dist/expect/greater-than-equal.test.d.ts.map +0 -1
  147. package/dist/expect/greater-than-equal.test.js +0 -24
  148. package/dist/expect/greater-than-equal.test.js.map +0 -1
  149. package/dist/expect/greater-than.test.d.ts +0 -2
  150. package/dist/expect/greater-than.test.d.ts.map +0 -1
  151. package/dist/expect/greater-than.test.js +0 -24
  152. package/dist/expect/greater-than.test.js.map +0 -1
  153. package/dist/expect/has-property.test.d.ts +0 -2
  154. package/dist/expect/has-property.test.d.ts.map +0 -1
  155. package/dist/expect/has-property.test.js +0 -39
  156. package/dist/expect/has-property.test.js.map +0 -1
  157. package/dist/expect/include.test.d.ts +0 -2
  158. package/dist/expect/include.test.d.ts.map +0 -1
  159. package/dist/expect/include.test.js +0 -33
  160. package/dist/expect/include.test.js.map +0 -1
  161. package/dist/expect/instance-of-shorthand.test.d.ts +0 -2
  162. package/dist/expect/instance-of-shorthand.test.d.ts.map +0 -1
  163. package/dist/expect/instance-of-shorthand.test.js +0 -42
  164. package/dist/expect/instance-of-shorthand.test.js.map +0 -1
  165. package/dist/expect/instance-of.test.d.ts +0 -2
  166. package/dist/expect/instance-of.test.d.ts.map +0 -1
  167. package/dist/expect/instance-of.test.js +0 -24
  168. package/dist/expect/instance-of.test.js.map +0 -1
  169. package/dist/expect/length.test.d.ts +0 -2
  170. package/dist/expect/length.test.d.ts.map +0 -1
  171. package/dist/expect/length.test.js +0 -24
  172. package/dist/expect/length.test.js.map +0 -1
  173. package/dist/expect/less-than-equal.test.d.ts +0 -2
  174. package/dist/expect/less-than-equal.test.d.ts.map +0 -1
  175. package/dist/expect/less-than-equal.test.js +0 -26
  176. package/dist/expect/less-than-equal.test.js.map +0 -1
  177. package/dist/expect/less-than.test.d.ts +0 -2
  178. package/dist/expect/less-than.test.d.ts.map +0 -1
  179. package/dist/expect/less-than.test.js +0 -26
  180. package/dist/expect/less-than.test.js.map +0 -1
  181. package/dist/expect/match.test.d.ts +0 -2
  182. package/dist/expect/match.test.d.ts.map +0 -1
  183. package/dist/expect/match.test.js +0 -24
  184. package/dist/expect/match.test.js.map +0 -1
  185. package/dist/expect/members.test.d.ts +0 -2
  186. package/dist/expect/members.test.d.ts.map +0 -1
  187. package/dist/expect/members.test.js +0 -59
  188. package/dist/expect/members.test.js.map +0 -1
  189. package/dist/expect/reject.test.d.ts +0 -2
  190. package/dist/expect/reject.test.d.ts.map +0 -1
  191. package/dist/expect/reject.test.js +0 -26
  192. package/dist/expect/reject.test.js.map +0 -1
  193. package/dist/expect/round-to.test.d.ts +0 -2
  194. package/dist/expect/round-to.test.d.ts.map +0 -1
  195. package/dist/expect/round-to.test.js +0 -20
  196. package/dist/expect/round-to.test.js.map +0 -1
  197. package/dist/expect/start-with.test.d.ts +0 -2
  198. package/dist/expect/start-with.test.d.ts.map +0 -1
  199. package/dist/expect/start-with.test.js +0 -15
  200. package/dist/expect/start-with.test.js.map +0 -1
  201. package/dist/expect/throw.test.d.ts +0 -2
  202. package/dist/expect/throw.test.d.ts.map +0 -1
  203. package/dist/expect/throw.test.js +0 -33
  204. package/dist/expect/throw.test.js.map +0 -1
  205. package/dist/expect/type-shorthand.test.d.ts +0 -2
  206. package/dist/expect/type-shorthand.test.d.ts.map +0 -1
  207. package/dist/expect/type-shorthand.test.js +0 -55
  208. package/dist/expect/type-shorthand.test.js.map +0 -1
  209. package/dist/expect/type.test.d.ts +0 -2
  210. package/dist/expect/type.test.d.ts.map +0 -1
  211. package/dist/expect/type.test.js +0 -24
  212. package/dist/expect/type.test.js.map +0 -1
  213. package/dist/expect.test.d.ts +0 -2
  214. package/dist/expect.test.d.ts.map +0 -1
  215. package/dist/expect.test.js +0 -22
  216. package/dist/expect.test.js.map +0 -1
  217. package/dist/utils/fail.test.d.ts +0 -2
  218. package/dist/utils/fail.test.d.ts.map +0 -1
  219. package/dist/utils/fail.test.js +0 -12
  220. package/dist/utils/fail.test.js.map +0 -1
  221. package/dist/utils/get-size.test.d.ts +0 -2
  222. package/dist/utils/get-size.test.d.ts.map +0 -1
  223. package/dist/utils/get-size.test.js +0 -28
  224. package/dist/utils/get-size.test.js.map +0 -1
  225. package/dist/utils/match.test.d.ts +0 -2
  226. package/dist/utils/match.test.d.ts.map +0 -1
  227. package/dist/utils/match.test.js +0 -333
  228. package/dist/utils/match.test.js.map +0 -1
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/excluding', () => {
5
- it('should exclude a propery', () => {
6
- (0, expect_1.expect)({ a: 1, b: 2 }).excluding('a').to.eql({ b: 2 });
7
- });
8
- it('should chain further', () => {
9
- (0, expect_1.expect)({ a: 1, b: 2, c: 3 }).excluding('a').excluding('b').to.eql({ c: 3 });
10
- });
11
- });
12
- //# sourceMappingURL=excluding.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excluding.test.js","sourceRoot":"","sources":["../../src/expect/excluding.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAChC,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC5B,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=greater-than-equal.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greater-than-equal.test.d.ts","sourceRoot":"","sources":["../../src/expect/greater-than-equal.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/greaterThanEqual', () => {
5
- it('should not throw when expectation is smaller than actual', () => {
6
- (0, expect_1.expect)(1).to.be.greaterThanOrEqual(0);
7
- });
8
- it('should not throw when expectation is equal to actual', () => {
9
- (0, expect_1.expect)(1).to.be.greaterThanOrEqual(1);
10
- });
11
- it('should throw when expectation is bigger than actual', () => {
12
- (0, expect_1.expect)(() => {
13
- (0, expect_1.expect)(1).to.be.greaterThanOrEqual(2);
14
- }).to.throw();
15
- });
16
- describe('not', () => {
17
- it('should invert the assertion', () => {
18
- (0, expect_1.expect)(() => {
19
- (0, expect_1.expect)(1).not.to.be.greaterThanOrEqual(0);
20
- }).to.throw();
21
- });
22
- });
23
- });
24
- //# sourceMappingURL=greater-than-equal.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greater-than-equal.test.js","sourceRoot":"","sources":["../../src/expect/greater-than-equal.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAChE,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC5D,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,IAAA,eAAM,EAAC,GAAG,EAAE;YACR,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;YACnC,IAAA,eAAM,EAAC,GAAG,EAAE;gBACR,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=greater-than.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greater-than.test.d.ts","sourceRoot":"","sources":["../../src/expect/greater-than.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/greaterThan', () => {
5
- it('should not throw when expectation is smaller than actual', () => {
6
- (0, expect_1.expect)(1).to.be.greaterThan(0);
7
- });
8
- it('should throw when expectation is bigger than actual', () => {
9
- (0, expect_1.expect)(() => {
10
- (0, expect_1.expect)(1).to.be.greaterThan(2);
11
- }).to.throw();
12
- });
13
- it('should work with dates', () => {
14
- (0, expect_1.expect)(new Date(1)).to.be.gt(new Date(0));
15
- });
16
- describe('not', () => {
17
- it('should invert the assertion', () => {
18
- (0, expect_1.expect)(() => {
19
- (0, expect_1.expect)(1).not.to.be.greaterThan(0);
20
- }).to.throw();
21
- });
22
- });
23
- });
24
- //# sourceMappingURL=greater-than.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greater-than.test.js","sourceRoot":"","sources":["../../src/expect/greater-than.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAChE,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,IAAA,eAAM,EAAC,GAAG,EAAE;YACR,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAC9B,IAAA,eAAM,EAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;YACnC,IAAA,eAAM,EAAC,GAAG,EAAE;gBACR,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=has-property.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-property.test.d.ts","sourceRoot":"","sources":["../../src/expect/has-property.test.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/property', () => {
5
- it('should not throw if object has property', () => {
6
- (0, expect_1.expect)({ a: 1 }).to.have.property('a');
7
- });
8
- it('should throw if object has property but value is incorrect', () => {
9
- (0, expect_1.expect)(() => {
10
- (0, expect_1.expect)({ a: 1 }).to.have.property('a', 2);
11
- }).to.throw(/Expected { a: 1 } to have property a with value 2/);
12
- });
13
- describe('not', () => {
14
- it(`should not throw if object doesn't have property`, () => {
15
- (0, expect_1.expect)({ a: 1 }).to.not.have.property('b');
16
- });
17
- });
18
- describe('deep', () => {
19
- it('should not throw if object has deep property', () => {
20
- (0, expect_1.expect)({ a: { b: { c: 1 } } }).to.have.deep.property('a.b.c', 1);
21
- });
22
- it('should throw if object has deep property but value is different', () => {
23
- (0, expect_1.expect)(() => {
24
- (0, expect_1.expect)({ a: { b: { c: 1 } } }).to.have.deep.property('a.b.c', 2);
25
- }).to.throw(/Expected { a: { b: { c: 1 } } } to have property a.b.c with value 2/);
26
- });
27
- describe('not', () => {
28
- it(`should not throw if object doesn't have deep property`, () => {
29
- (0, expect_1.expect)({ a: { b: { c: 1 } } }).to.not.have.deep.property('d.e.f', 1);
30
- });
31
- it('should throw if object has deep property', () => {
32
- (0, expect_1.expect)(() => {
33
- (0, expect_1.expect)({ a: { b: { c: 1 } } }).to.not.have.deep.property('a.b.c', 1);
34
- }).to.throw(/Expected { a: { b: { c: 1 } } } to not have property a.b.c with value 1/);
35
- });
36
- });
37
- });
38
- });
39
- //# sourceMappingURL=has-property.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-property.test.js","sourceRoot":"","sources":["../../src/expect/has-property.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QAC/C,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAA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C,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;QACvF,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;YACjB,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;gBAC7D,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACzE,CAAC,CAAC,CAAC;YACH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;gBAChD,IAAA,eAAM,EAAC,GAAG,EAAE;oBACR,IAAA,eAAM,EAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBACzE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;YAC3F,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=include.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.test.d.ts","sourceRoot":"","sources":["../../src/expect/include.test.ts"],"names":[],"mappings":""}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/include', () => {
5
- describe('arrays', () => {
6
- it('should not throw if element is in array', () => {
7
- (0, expect_1.expect)([1, 2]).to.include(1);
8
- });
9
- it('should throw if element is not in array', () => {
10
- (0, expect_1.expect)(() => (0, expect_1.expect)([1, 2]).to.include(3)).to.throw(/Expected \[ 1, 2 ] to include 3/);
11
- });
12
- describe('not', () => {
13
- it('should throw if element is in array', () => {
14
- (0, expect_1.expect)(() => (0, expect_1.expect)([1, 2]).not.to.include(1)).to.throw(/Expected \[ 1, 2 ] to not include 1/);
15
- });
16
- it('should not throw if element is not in array', () => {
17
- (0, expect_1.expect)([1, 2]).not.to.include(3);
18
- });
19
- });
20
- });
21
- describe('strings', () => {
22
- it('should not throw if string includes value', () => {
23
- (0, expect_1.expect)('abc').to.include('bc');
24
- });
25
- it('should throw if string does not include substring', () => {
26
- (0, expect_1.expect)(() => (0, expect_1.expect)('abc').to.include('ba')).to.throw(/Expected 'abc' to include 'ba'/);
27
- });
28
- it('should not throw when using .contain', () => {
29
- (0, expect_1.expect)('abc').to.contain('bc');
30
- });
31
- });
32
- });
33
- //# sourceMappingURL=include.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.test.js","sourceRoot":"","sources":["../../src/expect/include.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACpB,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;YAC/C,IAAA,eAAM,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;YAC/C,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAA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@
1
- {"version":3,"file":"instance-of-shorthand.test.d.ts","sourceRoot":"","sources":["../../src/expect/instance-of-shorthand.test.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /* eslint-disable @typescript-eslint/no-unused-expressions */
4
- /* eslint-disable mocha/no-setup-in-describe */
5
- const expect_1 = require("../expect");
6
- const instances = {
7
- Date: new Date(),
8
- Map: new Map(),
9
- Set: new Set(),
10
- WeakMap: new WeakMap(),
11
- WeakSet: new WeakSet()
12
- };
13
- describe('expect/instanceOf shorthands', () => {
14
- for (const [method, instance] of Object.entries(instances)) {
15
- describe(method, () => {
16
- // eslint-disable-next-line unicorn/new-for-builtins
17
- const wrongInstance = new String();
18
- it(`should not throw if value is an instance of ${method}`, () => {
19
- (0, expect_1.expect)(instance).to.be.a[method]();
20
- });
21
- it(`should throw if value is not an instance of ${method}`, () => {
22
- const regexp = new RegExp(`Expected String to be an instance of ${method}`);
23
- (0, expect_1.expect)(() => (0, expect_1.expect)(wrongInstance).to.be.a[method]()).to.throw(regexp);
24
- });
25
- describe('not', () => {
26
- it(`should not throw if value is not an instance of ${method}`, () => {
27
- (0, expect_1.expect)(wrongInstance).to.not.be.a[method]();
28
- });
29
- it(`should throw if value is an instance of ${method}`, () => {
30
- const regexp = new RegExp(`Expected ${method} to not be an instance of ${method}`);
31
- (0, expect_1.expect)(() => (0, expect_1.expect)(instance).to.not.be.a[method]()).to.throw(regexp);
32
- });
33
- });
34
- });
35
- }
36
- (0, expect_1.expect)(new Date()).to.be.a.Date;
37
- (0, expect_1.expect)(new Map()).to.be.a.Map;
38
- (0, expect_1.expect)(new Set()).to.be.a.Set;
39
- (0, expect_1.expect)(new WeakMap()).to.be.a.WeakMap;
40
- (0, expect_1.expect)(new WeakSet()).to.be.a.WeakSet;
41
- });
42
- //# sourceMappingURL=instance-of-shorthand.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-of-shorthand.test.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a,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChD,CAAC,CAAC,CAAC;gBACH,EAAE,CAAC,2CAA4C,MAAO,EAAE,EAAE,GAAG,EAAE;oBAC3D,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,YAAa,MAAO,6BAA8B,MAAO,EAAE,CAAC,CAAC;oBACvF,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAC1E,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;KACN;IACD,IAAA,eAAM,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAChC,IAAA,eAAM,EAAC,IAAI,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAC9B,IAAA,eAAM,EAAC,IAAI,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAC9B,IAAA,eAAM,EAAC,IAAI,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACtC,IAAA,eAAM,EAAC,IAAI,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AAC1C,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=instance-of.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-of.test.d.ts","sourceRoot":"","sources":["../../src/expect/instance-of.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/instanceOf', () => {
5
- it('should not throw if is correct constructor', () => {
6
- (0, expect_1.expect)(new Error()).to.be.instanceOf(Error);
7
- });
8
- it('should throw if is not correct constructor', () => {
9
- (0, expect_1.expect)(() => {
10
- (0, expect_1.expect)(new Error()).to.be.instanceOf(Array);
11
- }).to.throw(/Expected Error to be an instance of Array/);
12
- });
13
- describe('not', () => {
14
- it('should throw if is correct constructor', () => {
15
- (0, expect_1.expect)(() => {
16
- (0, expect_1.expect)(new Error()).not.to.be.instanceOf(Error);
17
- }).to.throw(/Expected Error to not be an instance of Error/);
18
- });
19
- it('should not throw if is not correct constructor', () => {
20
- (0, expect_1.expect)(new Error()).not.to.be.instanceOf(Array);
21
- });
22
- });
23
- });
24
- //# sourceMappingURL=instance-of.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-of.test.js","sourceRoot":"","sources":["../../src/expect/instance-of.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,IAAA,eAAM,EAAC,IAAI,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,IAAA,eAAM,EAAC,GAAG,EAAE;YACR,IAAA,eAAM,EAAC,IAAI,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;YAC9C,IAAA,eAAM,EAAC,GAAG,EAAE;gBACR,IAAA,eAAM,EAAC,IAAI,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACtD,IAAA,eAAM,EAAC,IAAI,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=length.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"length.test.d.ts","sourceRoot":"","sources":["../../src/expect/length.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('sizeOf', () => {
5
- it('should not throw if array is of correct size', () => {
6
- (0, expect_1.expect)([1, 2, 3]).to.have.sizeOf(3);
7
- });
8
- it('should throw if array is not of correct size', () => {
9
- (0, expect_1.expect)(() => {
10
- (0, expect_1.expect)([1, 2, 3]).to.have.sizeOf(2);
11
- }).to.throw(/Expected array to have length of 2/);
12
- });
13
- describe('not', () => {
14
- it('should throw if array is of correct size', () => {
15
- (0, expect_1.expect)(() => {
16
- (0, expect_1.expect)([1, 2, 3]).not.to.have.lengthOf(3);
17
- }).to.throw(/Expected array to not have length of 3/);
18
- });
19
- it('should not throw if array is not of correct size', () => {
20
- (0, expect_1.expect)([1, 2, 3]).not.to.have.sizeOf(2);
21
- });
22
- });
23
- });
24
- //# sourceMapp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AAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=less-than-equal.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"less-than-equal.test.d.ts","sourceRoot":"","sources":["../../src/expect/less-than-equal.test.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/less-than-equal', () => {
5
- it('should not throw if actual is smaller than expected', () => {
6
- (0, expect_1.expect)(1).lessThanOrEqual(2);
7
- });
8
- it('should not throw if actual is equal to expected', () => {
9
- (0, expect_1.expect)(1).lessThanOrEqual(1);
10
- });
11
- it('should throw if actual is greater than expected', () => {
12
- (0, expect_1.expect)(() => (0, expect_1.expect)(2).lessThanOrEqual(1)).to.throw(/Expected 2 to be less than or equal to 1/);
13
- });
14
- describe('not', () => {
15
- it('should not throw if actual is greater than expected', () => {
16
- (0, expect_1.expect)(2).to.not.be.lte(1);
17
- });
18
- it('should throw if actual is equal to expected', () => {
19
- (0, expect_1.expect)(() => (0, expect_1.expect)(1).not.lessThanOrEqual(1)).to.throw(/Expected 1 to not be less than or equal to 1/);
20
- });
21
- it('should throw if actual is smaller than expected', () => {
22
- (0, expect_1.expect)(() => (0, expect_1.expect)(1).not.lessThanOrEqual(2)).to.throw(/Expected 1 to not be less than or equal to 2/);
23
- });
24
- });
25
- });
26
- //# sourceMappingURL=less-than-equal.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"less-than-equal.test.js","sourceRoot":"","sources":["../../src/expect/less-than-equal.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,C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file":"less-than.test.d.ts","sourceRoot":"","sources":["../../src/expect/less-than.test.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/lessThan', () => {
5
- it('should not throw if actual is smaller than expected', () => {
6
- (0, expect_1.expect)(1).lessThan(2);
7
- });
8
- it('should throw if actual is equal to expected', () => {
9
- (0, expect_1.expect)(() => (0, expect_1.expect)(1).lt(1)).to.throw(/Expected 1 to be less than 1/);
10
- });
11
- it('should not throw if actual is a date lesser than expected', () => {
12
- (0, expect_1.expect)(new Date(0)).to.be.lessThan(new Date(1));
13
- });
14
- describe('not', () => {
15
- it('should not throw if actual is greater than expected', () => {
16
- (0, expect_1.expect)(2).to.not.be.below(1);
17
- });
18
- it('should not throw if actual is equal to expected', () => {
19
- (0, expect_1.expect)(1).to.not.be.below(1);
20
- });
21
- it('should throw if actual is smaller than expected', () => {
22
- (0, expect_1.expect)(() => (0, expect_1.expect)(1).not.lt(2)).to.throw(/Expected 1 to not be less than 2/);
23
- });
24
- });
25
- });
26
- //# sourceMappingURL=less-than.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"less-than.test.js","sourceRoot":"","sources":["../../src/expect/less-than.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACjE,IAAA,eAAM,EAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;YAC3D,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;YACvD,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;YACvD,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=match.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"match.test.d.ts","sourceRoot":"","sources":["../../src/expect/match.test.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/match', () => {
5
- it('should not throw if regex matches actual', () => {
6
- (0, expect_1.expect)('abc').match(/abc/);
7
- });
8
- it('should throw if regex does not match actual', () => {
9
- (0, expect_1.expect)(() => {
10
- (0, expect_1.expect)('abc').match(/def/);
11
- }).to.throw(/Expected abc to match \/def\//);
12
- });
13
- describe('not', () => {
14
- it('should not throw if regex does not match actual', () => {
15
- (0, expect_1.expect)('abc').not.match(/def/);
16
- });
17
- it('should throw if regex matches actual', () => {
18
- (0, expect_1.expect)(() => {
19
- (0, expect_1.expect)('abc').not.match(/abc/);
20
- }).to.throw(/Expected abc to not match \/abc\//);
21
- });
22
- });
23
- });
24
- //# sourceMappingURL=match.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"match.test.js","sourceRoot":"","sources":["../../src/expect/match.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAChD,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,IAAA,eAAM,EAAC,GAAG,EAAE;YACR,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;YACvD,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;YAC5C,IAAA,eAAM,EAAC,GAAG,EAAE;gBACR,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACnC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=members.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"members.test.d.ts","sourceRoot":"","sources":["../../src/expect/members.test.ts"],"names":[],"mappings":""}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/members', () => {
5
- it('should not throw if arrays have same members', () => {
6
- (0, expect_1.expect)([1]).to.have.members([1]);
7
- });
8
- it('should throw if arrays do not have same members', () => {
9
- (0, expect_1.expect)(() => (0, expect_1.expect)([1]).to.have.members([2])).to.throw(/Expected \[ 1 ] to have members \[ 2 ]/);
10
- });
11
- it('should throw if deep flag is not enabled and members are objects', () => {
12
- (0, expect_1.expect)(() => (0, expect_1.expect)([{ a: 1 }]).to.have.members([{ a: 1 }])).to.throw(/Expected \[ { a: 1 } ] to have members \[ { a: 1 } ]/);
13
- });
14
- describe('same', () => {
15
- it('should not throw if same flag is enabled and both arrays have same members', () => {
16
- (0, expect_1.expect)([1]).to.have.same.members([1]);
17
- });
18
- it('should throw if first array has more members than second array', () => {
19
- (0, expect_1.expect)(() => (0, expect_1.expect)([1, 2]).to.have.same.members([1])).to.throw(/Expected \[ 1, 2 ] to have same members as \[ 1 ]/);
20
- });
21
- });
22
- describe('ordered', () => {
23
- it('should not throw if ordered flag is enabled and both arrays have same members in same order', () => {
24
- (0, expect_1.expect)([1, 2]).to.have.ordered.members([1, 2]);
25
- });
26
- it('should throw if ordered flag is enabled and both arrays have same members in different order', () => {
27
- (0, expect_1.expect)(() => (0, expect_1.expect)([1, 2]).to.have.ordered.members([2, 1])).to.throw(/Expected \[ 1, 2 ] to have ordered members \[ 2, 1 ]/);
28
- });
29
- });
30
- describe('deep', () => {
31
- it('should not throw if deep flag is enabled and members are objects', () => {
32
- (0, expect_1.expect)([{ a: 1 }]).to.have.deep.members([{ a: 1 }]);
33
- });
34
- it('should throw if deep flag is enabled and members are objects but do not match', () => {
35
- (0, expect_1.expect)(() => (0, expect_1.expect)([{ a: 1 }]).to.have.deep.members([{ a: 2 }])).to.throw(/Expected \[ { a: 1 } ] to have members \[ { a: 2 } ]/);
36
- });
37
- });
38
- describe('partial', () => {
39
- it('should not throw if partial flag is enabled and members are objects', () => {
40
- (0, expect_1.expect)([{ a: 1, b: 2 }]).to.have.partially.members([{ a: 1 }]);
41
- });
42
- it('should throw if partial flag is enabled and members are objects but do not match', () => {
43
- (0, expect_1.expect)(() => (0, expect_1.expect)([{ a: 1, b: 2 }]).to.have.partially.members([{ a: 2 }])).to.throw(/Expected \[ { a: 1, b: 2 } ] to have members \[ { a: 2 } ]/);
44
- });
45
- });
46
- describe('not', () => {
47
- it('should not throw if arrays do not have same members', () => {
48
- (0, expect_1.expect)([1]).to.not.have.members([2]);
49
- });
50
- });
51
- it('should throw if non-array is passed', () => {
52
- // @ts-expect-error testing if non-array is caught
53
- (0, expect_1.expect)(() => (0, expect_1.expect)([1]).to.have.members(1)).to.throw();
54
- });
55
- it('should not produce a typescript error if passed any with partially', () => {
56
- (0, expect_1.expect)([{ a: 1 }]).to.partially.have.members([{ a: 1 }]);
57
- });
58
- });
59
- //# sourceMappingURL=members.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"members.test.js","sourceRoot":"","sources":["../../src/expect/members.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,IAAA,eAAM,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CA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,IAAA,eAAM,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=reject.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reject.test.d.ts","sourceRoot":"","sources":["../../src/expect/reject.test.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert_1 = require("../assert");
4
- const expect_1 = require("../expect");
5
- describe('expect/rejects', () => {
6
- it('should not reject if promise rejects', async () => {
7
- const regexp = /Hello darkness my old friend/;
8
- await (0, expect_1.expect)(Promise.reject(new Error('Hello darkness my old friend'))).to.reject(regexp);
9
- });
10
- it(`should reject if error doesn't match the provided regex`, async () => {
11
- const regexp = /Hello darkness my old friend/;
12
- await (0, assert_1.rejects)((0, expect_1.expect)(Promise.reject(new Error(`I've come to talk to you again`))).to.reject(regexp));
13
- });
14
- it('should reject if promise resolves', async () => {
15
- await (0, assert_1.rejects)((0, expect_1.expect)(Promise.resolve()).to.reject(), /Expected Promise to reject/);
16
- });
17
- describe('not', () => {
18
- it('should not reject if promise resolves', async () => {
19
- await (0, expect_1.expect)(Promise.resolve()).to.not.reject();
20
- });
21
- it('should reject if promise rejects', async () => {
22
- await (0, assert_1.rejects)((0, expect_1.expect)(Promise.reject(new Error('Hello darkness my old friend'))).to.not.reject());
23
- });
24
- });
25
- });
26
- //# sourceMappingURL=reject.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reject.test.js","sourceRoot":"","sources":["../../src/expect/reject.test.ts"],"names":[],"mappings":";;AAAA,sCAAoC;AACpC,sCAAmC;AAEnC,QAAQ,CAAC,gBAA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G,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=round-to.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"round-to.test.d.ts","sourceRoot":"","sources":["../../src/expect/round-to.test.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const expect_1 = require("../expect");
4
- describe('expect/roundTo', () => {
5
- it('should not throw if value rounds target integer', () => {
6
- (0, expect_1.expect)(1.0002).to.roundTo(1);
7
- });
8
- it('should throw if value does not round to target', () => {
9
- (0, expect_1.expect)(() => (0, expect_1.expect)(1.15).to.roundTo(1.1, 1)).to.throw(/Expected 1\.15 to round to 1\.1*/);
10
- });
11
- describe('not', () => {
12
- it('should not throw if value does not round to target', () => {
13
- (0, expect_1.expect)(1.15).to.not.roundTo(1.1, 1);
14
- });
15
- it('should throw if value rounds target integer', () => {
16
- (0, expect_1.expect)(() => (0, expect_1.expect)(1.0002).to.not.roundTo(1, 1)).to.throw(/Expected 1\.0002 to not round to 1/);
17
- });
18
- });
19
- });
20
- //# sourceMappingURL=round-to.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"round-to.test.js","sourceRoot":"","sources":["../../src/expect/round-to.test.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACtD,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC/F,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;QACjB,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC1D,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;YACnD,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACrG,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=start-with.test.d.ts.map