Fixing issue #283 #12
Annotations
6 errors
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle custom field when provided:
src/repositories/product/helpers.test.ts#L265
AssertionError: expected { …(8) } to match object { Object (id, country, ...) }
(5 matching properties omitted from actual)
- Expected
+ Received
@@ -1,16 +1,7 @@
{
"country": "NL",
- "custom": {
- "fields": {
- "customField": "customValue",
- },
- "type": {
- "id": "custom-type-id",
- "typeId": "type",
- },
- },
"id": Any<String>,
"value": {
"centAmount": 1000,
"currencyCode": "EUR",
"fractionDigits": 2,
❯ src/repositories/product/helpers.test.ts:265:18
|
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle discounted field when provided:
src/repositories/product/helpers.test.ts#L210
AssertionError: expected { …(8) } to match object { Object (id, country, ...) }
(5 matching properties omitted from actual)
- Expected
+ Received
@@ -1,19 +1,7 @@
{
"country": "NL",
- "discounted": {
- "discount": {
- "id": "product-discount-id",
- "typeId": "product-discount",
- },
- "value": {
- "centAmount": 800,
- "currencyCode": "EUR",
- "fractionDigits": 2,
- "type": "centPrecision",
- },
- },
"id": Any<String>,
"value": {
"centAmount": 1000,
"currencyCode": "EUR",
"fractionDigits": 2,
❯ src/repositories/product/helpers.test.ts:210:18
|
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle tiers field when provided:
src/repositories/product/helpers.test.ts#L146
AssertionError: expected { …(8) } to match object { Object (id, country, ...) }
(5 matching properties omitted from actual)
- Expected
+ Received
@@ -1,28 +1,8 @@
{
"country": "NL",
"id": Any<String>,
- "tiers": [
- {
- "minimumQuantity": 5,
- "value": {
- "centAmount": 900,
- "currencyCode": "EUR",
- "fractionDigits": 2,
- "type": "centPrecision",
- },
- },
- {
- "minimumQuantity": 10,
- "value": {
- "centAmount": 800,
- "currencyCode": "EUR",
- "fractionDigits": 2,
- "type": "centPrecision",
- },
- },
- ],
"value": {
"centAmount": 1000,
"currencyCode": "EUR",
"fractionDigits": 2,
"type": "centPrecision",
❯ src/repositories/product/helpers.test.ts:146:18
|
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle customerGroup field when provided:
src/repositories/product/helpers.test.ts#L71
AssertionError: expected { …(8) } to match object { Object (id, country, ...) }
(4 matching properties omitted from actual)
- Expected
+ Received
@@ -1,18 +1,9 @@
{
"country": "NL",
"customerGroup": {
"id": "customer-group-id",
- "obj": {
- "createdAt": "2025-07-15T05:29:57.212Z",
- "groupName": "Test Group",
- "id": "customer-group-id",
- "key": "customer-group-key",
- "lastModifiedAt": "2025-07-15T05:29:57.213Z",
- "name": "Test Customer Group",
- "version": 0,
- },
"typeId": "customer-group",
},
"id": Any<String>,
"value": {
"centAmount": 1000,
❯ src/repositories/product/helpers.test.ts:71:18
|
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle validFrom and validUntil fields when provided:
src/repositories/product/helpers.test.ts#L101
AssertionError: expected { …(5) } to match object { Object (id, country, ...) }
(2 matching properties omitted from actual)
- Expected
+ Received
@@ -1,10 +1,8 @@
{
"country": "NL",
"id": Any<String>,
- "validFrom": "2023-01-01T00:00:00.000Z",
- "validUntil": "2023-12-31T23:59:59.999Z",
"value": {
"centAmount": 1000,
"currencyCode": "EUR",
"fractionDigits": 2,
"type": "centPrecision",
❯ src/repositories/product/helpers.test.ts:101:18
|
|
src/repositories/product/helpers.test.ts > priceFromDraft > should handle customerGroup field when provided:
src/repositories/product/helpers.test.ts#L71
AssertionError: expected { …(5) } to match object { Object (id, country, ...) }
(2 matching properties omitted from actual)
- Expected
+ Received
@@ -1,20 +1,7 @@
{
"country": "NL",
- "customerGroup": {
- "id": "customer-group-id",
- "obj": {
- "createdAt": "2025-07-15T05:29:12.983Z",
- "groupName": "Test Group",
- "id": "customer-group-id",
- "key": "customer-group-key",
- "lastModifiedAt": "2025-07-15T05:29:12.983Z",
- "name": "Test Customer Group",
- "version": 0,
- },
- "typeId": "customer-group",
- },
"id": Any<String>,
"value": {
"centAmount": 1000,
"currencyCode": "EUR",
"fractionDigits": 2,
❯ src/repositories/product/helpers.test.ts:71:18
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
Expired
|
1.78 KB |
sha256:fa2a36a8923105f8d2ec036765a8eb1654b819ce3e6872ecfd4f20e56a34a552
|
|