From 4e0668006b56f0676509e014845eb1e8ca908cc0 Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 9 Nov 2022 08:26:55 +0100 Subject: [PATCH] Updated unit test --- .../{useModule.spec.js => useNavigation.spec.js} | 3 ++- src/pages/Ticket/Card/TicketDescriptor.vue | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) rename src/composables/__tests__/{useModule.spec.js => useNavigation.spec.js} (94%) diff --git a/src/composables/__tests__/useModule.spec.js b/src/composables/__tests__/useNavigation.spec.js similarity index 94% rename from src/composables/__tests__/useModule.spec.js rename to src/composables/__tests__/useNavigation.spec.js index d706612cd..e633d46c4 100644 --- a/src/composables/__tests__/useModule.spec.js +++ b/src/composables/__tests__/useNavigation.spec.js @@ -32,7 +32,8 @@ describe('useNavigation', () => { name: 'CustomerCreate', title: 'createCustomer', icon: 'vn:addperson', - stateName: 'CustomerCreate' + stateName: 'CustomerCreate', + roles: ['developer'] }]; const secondMenuItem = navigation.modules.value[1] diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index 147406166..ce875d1cd 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -78,8 +78,8 @@ function stateColor(state) { - {{ t('ticket.card.agency') }} - {{ ticket.agencyMode.name }} + {{ t('ticket.card.warehouse') }} + {{ ticket.warehouse.name }} {{ t('ticket.card.shipped') }} @@ -88,8 +88,8 @@ function stateColor(state) { - {{ t('ticket.card.warehouse') }} - {{ ticket.warehouse.name }} + {{ t('ticket.card.agency') }} + {{ ticket.agencyMode.name }}