Przeglądaj źródła

fix(server): Fix incorrect error message

Michael Bromley 7 lat temu
rodzic
commit
158365feae
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      server/e2e/order.e2e-spec.ts
  2. 1 1
      server/src/i18n/messages/en.json

+ 1 - 1
server/e2e/order.e2e-spec.ts

@@ -183,7 +183,7 @@ describe('Orders', () => {
             'attempting to transition to ArrangingPayment throws when Order has no Customer',
             assertThrowsWithMessage(
                 () => client.query(TRANSITION_TO_STATE, { state: 'ArrangingPayment' }),
-                `Cannot transition Order to the "ArrangingShipping" state without Customer details`,
+                `Cannot transition Order to the "ArrangingPayment" state without Customer details`,
             ),
         );
 

+ 1 - 1
server/src/i18n/messages/en.json

@@ -4,7 +4,7 @@
     "cannot-move-product-category-into-self": "Cannot move a ProductCategory into itself",
     "cannot-transition-order-from-to": "Cannot transition Order from \"{ fromState }\" to \"{ toState }\"",
     "cannot-transition-to-shipping-when-order-is-empty": "Cannot transition Order to the \"ArrangingShipping\" state when it is empty",
-    "cannot-transition-to-payment-without-customer": "Cannot transition Order to the \"ArrangingShipping\" state without Customer details",
+    "cannot-transition-to-payment-without-customer": "Cannot transition Order to the \"ArrangingPayment\" state without Customer details",
     "channel-not-found":  "No channel with the token \"{ token }\" exists",
     "country-code-not-valid":  "The countryCode \"{ countryCode }\" was not recognized",
     "email-address-not-verified": "Please verify this email address before logging in",