@onivoro/isomorphic-common 0.3.1 → 0.3.3

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 (216) hide show
  1. package/package.json +4 -3
  2. package/dist/cjs/jest.config.d.ts +0 -14
  3. package/dist/cjs/jest.config.js +0 -19
  4. package/dist/cjs/src/lib/functions/add-offset.function.spec.d.ts +0 -1
  5. package/dist/cjs/src/lib/functions/add-offset.function.spec.js +0 -13
  6. package/dist/cjs/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
  7. package/dist/cjs/src/lib/functions/convert-object-to-literal.function.spec.js +0 -11
  8. package/dist/cjs/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
  9. package/dist/cjs/src/lib/functions/from-calendar-date.function.spec.js +0 -12
  10. package/dist/cjs/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
  11. package/dist/cjs/src/lib/functions/subtract-offset.function.spec.js +0 -13
  12. package/dist/cjs/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
  13. package/dist/cjs/src/lib/functions/to-dollars-and-cents.function.spec.js +0 -8
  14. package/dist/cjs/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
  15. package/dist/cjs/src/lib/functions/to-unique-array.function.spec.js +0 -35
  16. package/dist/cjs/src/lib/functions/to-words.function.spec.d.ts +0 -1
  17. package/dist/cjs/src/lib/functions/to-words.function.spec.js +0 -8
  18. package/dist/cjs/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
  19. package/dist/cjs/src/lib/functions/try-parse-date.function.spec.js +0 -13
  20. package/dist/cjs/src/lib/functions/upper-first.function.spec.d.ts +0 -1
  21. package/dist/cjs/src/lib/functions/upper-first.function.spec.js +0 -16
  22. package/dist/esm/jest.config.d.ts +0 -14
  23. package/dist/esm/jest.config.js +0 -17
  24. package/dist/esm/src/lib/functions/add-offset.function.spec.d.ts +0 -1
  25. package/dist/esm/src/lib/functions/add-offset.function.spec.js +0 -11
  26. package/dist/esm/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
  27. package/dist/esm/src/lib/functions/convert-object-to-literal.function.spec.js +0 -9
  28. package/dist/esm/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
  29. package/dist/esm/src/lib/functions/from-calendar-date.function.spec.js +0 -10
  30. package/dist/esm/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
  31. package/dist/esm/src/lib/functions/subtract-offset.function.spec.js +0 -11
  32. package/dist/esm/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
  33. package/dist/esm/src/lib/functions/to-dollars-and-cents.function.spec.js +0 -6
  34. package/dist/esm/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
  35. package/dist/esm/src/lib/functions/to-unique-array.function.spec.js +0 -33
  36. package/dist/esm/src/lib/functions/to-words.function.spec.d.ts +0 -1
  37. package/dist/esm/src/lib/functions/to-words.function.spec.js +0 -6
  38. package/dist/esm/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
  39. package/dist/esm/src/lib/functions/try-parse-date.function.spec.js +0 -11
  40. package/dist/esm/src/lib/functions/upper-first.function.spec.d.ts +0 -1
  41. package/dist/esm/src/lib/functions/upper-first.function.spec.js +0 -14
  42. package/dist/types/jest.config.d.ts +0 -14
  43. package/dist/types/src/lib/functions/add-offset.function.spec.d.ts +0 -1
  44. package/dist/types/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
  45. package/dist/types/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
  46. package/dist/types/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
  47. package/dist/types/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
  48. package/dist/types/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
  49. package/dist/types/src/lib/functions/to-words.function.spec.d.ts +0 -1
  50. package/dist/types/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
  51. package/dist/types/src/lib/functions/upper-first.function.spec.d.ts +0 -1
  52. /package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
  53. /package/dist/cjs/{src/index.js → index.js} +0 -0
  54. /package/dist/cjs/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
  55. /package/dist/cjs/{src/lib → lib}/constants/millis-per-day.constant.js +0 -0
  56. /package/dist/cjs/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
  57. /package/dist/cjs/{src/lib → lib}/constants/millis-per-hour.constant.js +0 -0
  58. /package/dist/cjs/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
  59. /package/dist/cjs/{src/lib → lib}/constants/millis-per-minute.constant.js +0 -0
  60. /package/dist/cjs/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
  61. /package/dist/cjs/{src/lib → lib}/functions/add-offset.function.js +0 -0
  62. /package/dist/cjs/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
  63. /package/dist/cjs/{src/lib → lib}/functions/camel-case.function.js +0 -0
  64. /package/dist/cjs/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
  65. /package/dist/cjs/{src/lib → lib}/functions/convert-object-to-literal.function.js +0 -0
  66. /package/dist/cjs/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
  67. /package/dist/cjs/{src/lib → lib}/functions/from-boolean-string.function.js +0 -0
  68. /package/dist/cjs/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
  69. /package/dist/cjs/{src/lib → lib}/functions/from-calendar-date.function.js +0 -0
  70. /package/dist/cjs/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
  71. /package/dist/cjs/{src/lib → lib}/functions/from-csv-string.function.js +0 -0
  72. /package/dist/cjs/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
  73. /package/dist/cjs/{src/lib → lib}/functions/get-tag.function.js +0 -0
  74. /package/dist/cjs/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
  75. /package/dist/cjs/{src/lib → lib}/functions/is-symbol.function.js +0 -0
  76. /package/dist/cjs/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
  77. /package/dist/cjs/{src/lib → lib}/functions/kebab-case.function.js +0 -0
  78. /package/dist/cjs/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
  79. /package/dist/cjs/{src/lib → lib}/functions/parse-bool.function.js +0 -0
  80. /package/dist/cjs/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
  81. /package/dist/cjs/{src/lib → lib}/functions/properties-to-array.function.js +0 -0
  82. /package/dist/cjs/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
  83. /package/dist/cjs/{src/lib → lib}/functions/sanitize-filename.function.js +0 -0
  84. /package/dist/cjs/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
  85. /package/dist/cjs/{src/lib → lib}/functions/snake-case.function.js +0 -0
  86. /package/dist/cjs/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
  87. /package/dist/cjs/{src/lib → lib}/functions/subtract-offset.function.js +0 -0
  88. /package/dist/cjs/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
  89. /package/dist/cjs/{src/lib → lib}/functions/to-boolean-string.function.js +0 -0
  90. /package/dist/cjs/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
  91. /package/dist/cjs/{src/lib → lib}/functions/to-calendar-date.function.js +0 -0
  92. /package/dist/cjs/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
  93. /package/dist/cjs/{src/lib → lib}/functions/to-csv-string.function.js +0 -0
  94. /package/dist/cjs/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
  95. /package/dist/cjs/{src/lib → lib}/functions/to-decimal-base.function.js +0 -0
  96. /package/dist/cjs/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
  97. /package/dist/cjs/{src/lib → lib}/functions/to-dollars-and-cents.function.js +0 -0
  98. /package/dist/cjs/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
  99. /package/dist/cjs/{src/lib → lib}/functions/to-string.function.js +0 -0
  100. /package/dist/cjs/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
  101. /package/dist/cjs/{src/lib → lib}/functions/to-unique-array.function.js +0 -0
  102. /package/dist/cjs/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
  103. /package/dist/cjs/{src/lib → lib}/functions/to-words.function.js +0 -0
  104. /package/dist/cjs/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
  105. /package/dist/cjs/{src/lib → lib}/functions/try-parse-date.function.js +0 -0
  106. /package/dist/cjs/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
  107. /package/dist/cjs/{src/lib → lib}/functions/unicode-words.const.js +0 -0
  108. /package/dist/cjs/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
  109. /package/dist/cjs/{src/lib → lib}/functions/upper-first.function.js +0 -0
  110. /package/dist/cjs/{src/lib → lib}/functions/words.function.d.ts +0 -0
  111. /package/dist/cjs/{src/lib → lib}/functions/words.function.js +0 -0
  112. /package/dist/cjs/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
  113. /package/dist/cjs/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.js +0 -0
  114. /package/dist/cjs/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
  115. /package/dist/cjs/{src/lib → lib}/interfaces/entity-provider.interface.js +0 -0
  116. /package/dist/cjs/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
  117. /package/dist/cjs/{src/lib → lib}/interfaces/keys-of.type.js +0 -0
  118. /package/dist/esm/{src/index.d.ts → index.d.ts} +0 -0
  119. /package/dist/esm/{src/index.js → index.js} +0 -0
  120. /package/dist/esm/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
  121. /package/dist/esm/{src/lib → lib}/constants/millis-per-day.constant.js +0 -0
  122. /package/dist/esm/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
  123. /package/dist/esm/{src/lib → lib}/constants/millis-per-hour.constant.js +0 -0
  124. /package/dist/esm/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
  125. /package/dist/esm/{src/lib → lib}/constants/millis-per-minute.constant.js +0 -0
  126. /package/dist/esm/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
  127. /package/dist/esm/{src/lib → lib}/functions/add-offset.function.js +0 -0
  128. /package/dist/esm/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
  129. /package/dist/esm/{src/lib → lib}/functions/camel-case.function.js +0 -0
  130. /package/dist/esm/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
  131. /package/dist/esm/{src/lib → lib}/functions/convert-object-to-literal.function.js +0 -0
  132. /package/dist/esm/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
  133. /package/dist/esm/{src/lib → lib}/functions/from-boolean-string.function.js +0 -0
  134. /package/dist/esm/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
  135. /package/dist/esm/{src/lib → lib}/functions/from-calendar-date.function.js +0 -0
  136. /package/dist/esm/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
  137. /package/dist/esm/{src/lib → lib}/functions/from-csv-string.function.js +0 -0
  138. /package/dist/esm/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
  139. /package/dist/esm/{src/lib → lib}/functions/get-tag.function.js +0 -0
  140. /package/dist/esm/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
  141. /package/dist/esm/{src/lib → lib}/functions/is-symbol.function.js +0 -0
  142. /package/dist/esm/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
  143. /package/dist/esm/{src/lib → lib}/functions/kebab-case.function.js +0 -0
  144. /package/dist/esm/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
  145. /package/dist/esm/{src/lib → lib}/functions/parse-bool.function.js +0 -0
  146. /package/dist/esm/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
  147. /package/dist/esm/{src/lib → lib}/functions/properties-to-array.function.js +0 -0
  148. /package/dist/esm/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
  149. /package/dist/esm/{src/lib → lib}/functions/sanitize-filename.function.js +0 -0
  150. /package/dist/esm/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
  151. /package/dist/esm/{src/lib → lib}/functions/snake-case.function.js +0 -0
  152. /package/dist/esm/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
  153. /package/dist/esm/{src/lib → lib}/functions/subtract-offset.function.js +0 -0
  154. /package/dist/esm/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
  155. /package/dist/esm/{src/lib → lib}/functions/to-boolean-string.function.js +0 -0
  156. /package/dist/esm/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
  157. /package/dist/esm/{src/lib → lib}/functions/to-calendar-date.function.js +0 -0
  158. /package/dist/esm/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
  159. /package/dist/esm/{src/lib → lib}/functions/to-csv-string.function.js +0 -0
  160. /package/dist/esm/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
  161. /package/dist/esm/{src/lib → lib}/functions/to-decimal-base.function.js +0 -0
  162. /package/dist/esm/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
  163. /package/dist/esm/{src/lib → lib}/functions/to-dollars-and-cents.function.js +0 -0
  164. /package/dist/esm/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
  165. /package/dist/esm/{src/lib → lib}/functions/to-string.function.js +0 -0
  166. /package/dist/esm/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
  167. /package/dist/esm/{src/lib → lib}/functions/to-unique-array.function.js +0 -0
  168. /package/dist/esm/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
  169. /package/dist/esm/{src/lib → lib}/functions/to-words.function.js +0 -0
  170. /package/dist/esm/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
  171. /package/dist/esm/{src/lib → lib}/functions/try-parse-date.function.js +0 -0
  172. /package/dist/esm/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
  173. /package/dist/esm/{src/lib → lib}/functions/unicode-words.const.js +0 -0
  174. /package/dist/esm/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
  175. /package/dist/esm/{src/lib → lib}/functions/upper-first.function.js +0 -0
  176. /package/dist/esm/{src/lib → lib}/functions/words.function.d.ts +0 -0
  177. /package/dist/esm/{src/lib → lib}/functions/words.function.js +0 -0
  178. /package/dist/esm/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
  179. /package/dist/esm/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.js +0 -0
  180. /package/dist/esm/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
  181. /package/dist/esm/{src/lib → lib}/interfaces/entity-provider.interface.js +0 -0
  182. /package/dist/esm/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
  183. /package/dist/esm/{src/lib → lib}/interfaces/keys-of.type.js +0 -0
  184. /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
  185. /package/dist/types/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
  186. /package/dist/types/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
  187. /package/dist/types/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
  188. /package/dist/types/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
  189. /package/dist/types/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
  190. /package/dist/types/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
  191. /package/dist/types/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
  192. /package/dist/types/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
  193. /package/dist/types/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
  194. /package/dist/types/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
  195. /package/dist/types/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
  196. /package/dist/types/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
  197. /package/dist/types/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
  198. /package/dist/types/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
  199. /package/dist/types/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
  200. /package/dist/types/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
  201. /package/dist/types/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
  202. /package/dist/types/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
  203. /package/dist/types/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
  204. /package/dist/types/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
  205. /package/dist/types/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
  206. /package/dist/types/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
  207. /package/dist/types/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
  208. /package/dist/types/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
  209. /package/dist/types/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
  210. /package/dist/types/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
  211. /package/dist/types/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
  212. /package/dist/types/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
  213. /package/dist/types/{src/lib → lib}/functions/words.function.d.ts +0 -0
  214. /package/dist/types/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
  215. /package/dist/types/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
  216. /package/dist/types/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@onivoro/isomorphic-common",
3
- "version": "0.3.1",
4
- "main": "dist/index.cjs.js",
5
- "module": "dist/index.esm.js",
3
+ "version": "0.3.3",
4
+ "main": "dist/cjs/index.js",
5
+ "module": "dist/esm/index.js",
6
+ "types": "dist/types/index.d.ts",
6
7
  "files": [
7
8
  "dist/*"
8
9
  ],
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- displayName: string;
3
- preset: string;
4
- globals: {};
5
- testEnvironment: string;
6
- transform: {
7
- '^.+\\.[tj]sx?$': (string | {
8
- tsconfig: string;
9
- })[];
10
- };
11
- moduleFileExtensions: string[];
12
- coverageDirectory: string;
13
- };
14
- export default _default;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /* eslint-disable */
4
- exports.default = {
5
- displayName: 'isomorphic-common',
6
- preset: '../../jest.preset.js',
7
- globals: {},
8
- testEnvironment: 'node',
9
- transform: {
10
- '^.+\\.[tj]sx?$': [
11
- 'ts-jest',
12
- {
13
- tsconfig: '<rootDir>/tsconfig.spec.json',
14
- },
15
- ],
16
- },
17
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
18
- coverageDirectory: '../../coverage/libs/isomorphic-common',
19
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const add_offset_function_1 = require("./add-offset.function");
4
- describe('addOffset', () => {
5
- describe('GIVEN input is partial or full ISO8601', () => {
6
- it.each([
7
- '2023-12-23',
8
- '2023-12-23T00:00:00.000',
9
- ])('%j', (input) => {
10
- expect((0, add_offset_function_1.addOffset)(input)).toMatchSnapshot();
11
- });
12
- });
13
- });
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const convert_object_to_literal_function_1 = require("./convert-object-to-literal.function");
4
- const qty = 337;
5
- const price = 100;
6
- const product = 'flux-capacitor';
7
- describe(__filename, () => {
8
- it.each([[(k, v) => `${k}=${v}`, ' AND ', { qty, price, product }]])('converts an object to a string', (literalFn, delimiter, obj) => {
9
- expect((0, convert_object_to_literal_function_1.convertObjectToLiteral)(literalFn, delimiter, obj)).toMatchSnapshot();
10
- });
11
- });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const from_calendar_date_function_1 = require("./from-calendar-date.function");
4
- describe('fromCalendarDate', () => {
5
- describe('GIVEN input is partial or full ISO8601', () => {
6
- it.each([
7
- '2023-12-23',
8
- ])('%j', (input) => {
9
- expect((0, from_calendar_date_function_1.fromCalendarDate)(input)).toMatchSnapshot();
10
- });
11
- });
12
- });
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const subtract_offset_function_1 = require("./subtract-offset.function");
4
- describe('subtractOffset', () => {
5
- describe('GIVEN input is partial or full ISO8601', () => {
6
- it.each([
7
- '2023-12-23',
8
- '2023-12-23T00:00:00.000',
9
- ])('%j', (input) => {
10
- expect((0, subtract_offset_function_1.subtractOffset)(input)).toMatchSnapshot();
11
- });
12
- });
13
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const to_dollars_and_cents_function_1 = require("./to-dollars-and-cents.function");
4
- describe('toDollarsAndCents', () => {
5
- it('worx', () => {
6
- expect((0, to_dollars_and_cents_function_1.toDollarsAndCents)(337.33)).toMatchSnapshot();
7
- });
8
- });
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const to_unique_array_function_1 = require("./to-unique-array.function");
4
- describe('toUniqueArray', () => {
5
- it.each([
6
- [
7
- [1, 2, 3],
8
- [1, 2, 3],
9
- ],
10
- [[1, 1, 1], [1]],
11
- ])('GIVEN array of numbers: %j, returns a unique array without duplicate elements', (array, expected) => {
12
- expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
13
- });
14
- it.each([
15
- [
16
- ['one', 'two', 'three'],
17
- ['one', 'two', 'three'],
18
- ],
19
- [['one', 'one', 'one'], ['one']],
20
- ])('GIVEN array of strings: %j, returns a unique array without duplicate elements', (array, expected) => {
21
- expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
22
- });
23
- it.each([
24
- [
25
- ['one', 'two', 'three', undefined, undefined],
26
- ['one', 'two', 'three', undefined],
27
- ],
28
- [
29
- ['one', 'one', 'one', null, null],
30
- ['one', null],
31
- ],
32
- ])('GIVEN array with falsey values: %j, returns a unique array without duplicate elements including falsey values', (array, expected) => {
33
- expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
34
- });
35
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const to_words_function_1 = require("./to-words.function");
4
- describe('toWords', () => {
5
- it('worx', () => {
6
- expect((0, to_words_function_1.toWords)(337)).toMatchSnapshot();
7
- });
8
- });
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const try_parse_date_function_1 = require("./try-parse-date.function");
4
- describe('tryParseDate', () => {
5
- describe('GIVEN input is partial or full ISO8601', () => {
6
- it.each([
7
- '2023-12-23',
8
- '2023-12-23T00:00:00.000',
9
- ])('%j', (input) => {
10
- expect((0, try_parse_date_function_1.tryParseDate)(input)).toMatchSnapshot();
11
- });
12
- });
13
- });
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const upper_first_function_1 = require("./upper-first.function");
4
- describe('upperFirst', () => {
5
- it.each([
6
- 'asdf',
7
- 'XCVB'
8
- ])('GIVEN %j, does what u expect', (input) => {
9
- expect((0, upper_first_function_1.upperFirst)(input)).toMatchSnapshot();
10
- });
11
- it.each([
12
- null, undefined, 0, false
13
- ])('GIVEN falsey input %j, does what u expect', (input) => {
14
- expect((0, upper_first_function_1.upperFirst)(input)).toMatchSnapshot();
15
- });
16
- });
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- displayName: string;
3
- preset: string;
4
- globals: {};
5
- testEnvironment: string;
6
- transform: {
7
- '^.+\\.[tj]sx?$': (string | {
8
- tsconfig: string;
9
- })[];
10
- };
11
- moduleFileExtensions: string[];
12
- coverageDirectory: string;
13
- };
14
- export default _default;
@@ -1,17 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: 'isomorphic-common',
4
- preset: '../../jest.preset.js',
5
- globals: {},
6
- testEnvironment: 'node',
7
- transform: {
8
- '^.+\\.[tj]sx?$': [
9
- 'ts-jest',
10
- {
11
- tsconfig: '<rootDir>/tsconfig.spec.json',
12
- },
13
- ],
14
- },
15
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
16
- coverageDirectory: '../../coverage/libs/isomorphic-common',
17
- };
@@ -1,11 +0,0 @@
1
- import { addOffset } from './add-offset.function';
2
- describe('addOffset', () => {
3
- describe('GIVEN input is partial or full ISO8601', () => {
4
- it.each([
5
- '2023-12-23',
6
- '2023-12-23T00:00:00.000',
7
- ])('%j', (input) => {
8
- expect(addOffset(input)).toMatchSnapshot();
9
- });
10
- });
11
- });
@@ -1,9 +0,0 @@
1
- import { convertObjectToLiteral } from './convert-object-to-literal.function';
2
- const qty = 337;
3
- const price = 100;
4
- const product = 'flux-capacitor';
5
- describe(__filename, () => {
6
- it.each([[(k, v) => `${k}=${v}`, ' AND ', { qty, price, product }]])('converts an object to a string', (literalFn, delimiter, obj) => {
7
- expect(convertObjectToLiteral(literalFn, delimiter, obj)).toMatchSnapshot();
8
- });
9
- });
@@ -1,10 +0,0 @@
1
- import { fromCalendarDate } from './from-calendar-date.function';
2
- describe('fromCalendarDate', () => {
3
- describe('GIVEN input is partial or full ISO8601', () => {
4
- it.each([
5
- '2023-12-23',
6
- ])('%j', (input) => {
7
- expect(fromCalendarDate(input)).toMatchSnapshot();
8
- });
9
- });
10
- });
@@ -1,11 +0,0 @@
1
- import { subtractOffset } from './subtract-offset.function';
2
- describe('subtractOffset', () => {
3
- describe('GIVEN input is partial or full ISO8601', () => {
4
- it.each([
5
- '2023-12-23',
6
- '2023-12-23T00:00:00.000',
7
- ])('%j', (input) => {
8
- expect(subtractOffset(input)).toMatchSnapshot();
9
- });
10
- });
11
- });
@@ -1,6 +0,0 @@
1
- import { toDollarsAndCents } from './to-dollars-and-cents.function';
2
- describe('toDollarsAndCents', () => {
3
- it('worx', () => {
4
- expect(toDollarsAndCents(337.33)).toMatchSnapshot();
5
- });
6
- });
@@ -1,33 +0,0 @@
1
- import { toUniqueArray } from './to-unique-array.function';
2
- describe('toUniqueArray', () => {
3
- it.each([
4
- [
5
- [1, 2, 3],
6
- [1, 2, 3],
7
- ],
8
- [[1, 1, 1], [1]],
9
- ])('GIVEN array of numbers: %j, returns a unique array without duplicate elements', (array, expected) => {
10
- expect(toUniqueArray(array)).toEqual(expected);
11
- });
12
- it.each([
13
- [
14
- ['one', 'two', 'three'],
15
- ['one', 'two', 'three'],
16
- ],
17
- [['one', 'one', 'one'], ['one']],
18
- ])('GIVEN array of strings: %j, returns a unique array without duplicate elements', (array, expected) => {
19
- expect(toUniqueArray(array)).toEqual(expected);
20
- });
21
- it.each([
22
- [
23
- ['one', 'two', 'three', undefined, undefined],
24
- ['one', 'two', 'three', undefined],
25
- ],
26
- [
27
- ['one', 'one', 'one', null, null],
28
- ['one', null],
29
- ],
30
- ])('GIVEN array with falsey values: %j, returns a unique array without duplicate elements including falsey values', (array, expected) => {
31
- expect(toUniqueArray(array)).toEqual(expected);
32
- });
33
- });
@@ -1,6 +0,0 @@
1
- import { toWords } from "./to-words.function";
2
- describe('toWords', () => {
3
- it('worx', () => {
4
- expect(toWords(337)).toMatchSnapshot();
5
- });
6
- });
@@ -1,11 +0,0 @@
1
- import { tryParseDate } from './try-parse-date.function';
2
- describe('tryParseDate', () => {
3
- describe('GIVEN input is partial or full ISO8601', () => {
4
- it.each([
5
- '2023-12-23',
6
- '2023-12-23T00:00:00.000',
7
- ])('%j', (input) => {
8
- expect(tryParseDate(input)).toMatchSnapshot();
9
- });
10
- });
11
- });
@@ -1,14 +0,0 @@
1
- import { upperFirst } from './upper-first.function';
2
- describe('upperFirst', () => {
3
- it.each([
4
- 'asdf',
5
- 'XCVB'
6
- ])('GIVEN %j, does what u expect', (input) => {
7
- expect(upperFirst(input)).toMatchSnapshot();
8
- });
9
- it.each([
10
- null, undefined, 0, false
11
- ])('GIVEN falsey input %j, does what u expect', (input) => {
12
- expect(upperFirst(input)).toMatchSnapshot();
13
- });
14
- });
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- displayName: string;
3
- preset: string;
4
- globals: {};
5
- testEnvironment: string;
6
- transform: {
7
- '^.+\\.[tj]sx?$': (string | {
8
- tsconfig: string;
9
- })[];
10
- };
11
- moduleFileExtensions: string[];
12
- coverageDirectory: string;
13
- };
14
- export default _default;
File without changes
File without changes