final fixes
This commit is contained in:
parent
71f7190759
commit
ddb49a8e7c
2 changed files with 1 additions and 18 deletions
|
|
@ -17,13 +17,6 @@ jest.mock('@/helpers/cms-content-helper', () => ({
|
|||
}));
|
||||
const wordingText = 'wording Text {custom:address}';
|
||||
|
||||
const inShopDuration = '60-90 minutes';
|
||||
jest.mock('@/helpers/date-helper', () => ({
|
||||
getDisplayTextForDurationLength: jest.fn().mockImplementation(() => inShopDuration),
|
||||
convertDateStringToDate: jest.fn(),
|
||||
get12HourTimeFormat: jest.fn()
|
||||
}));
|
||||
|
||||
const mockMixin = {
|
||||
methods: {
|
||||
getCmsContent: jest.fn().mockImplementation(() => wordingText),
|
||||
|
|
@ -418,15 +411,5 @@ describe('OrderConfirmation.vue', () => {
|
|||
// Assert
|
||||
expect(testValue).toEqual(expected);
|
||||
});
|
||||
test('inShopAppointmentDuration should return appointment length', () => {
|
||||
// Arrange
|
||||
const { wrapper } = getMountedComponent(initialStore);
|
||||
|
||||
// Act
|
||||
const testValue = wrapper.vm.inShopAppointmentDuration;
|
||||
|
||||
// Assert
|
||||
expect(testValue).toEqual(inShopDuration);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ export default {
|
|||
// This conversion ensures we don't get get GMT induced date changes
|
||||
const dateObject = convertDateStringToDate(this.appointmentDate);
|
||||
// Ex: Tuesday, April 22
|
||||
return dateObject?.toLocaleDateString('en-us', {
|
||||
return dateObject.toLocaleDateString('en-us', {
|
||||
weekday: 'long',
|
||||
month: 'long',
|
||||
day: 'numeric'
|
||||
|
|
|
|||
Loading…
Reference in a new issue