diff --git a/src/layouts/duplicate-check/duplicate-check.spec.js b/src/layouts/duplicate-check/duplicate-check.spec.js index 5662fe97..cebc9fb9 100644 --- a/src/layouts/duplicate-check/duplicate-check.spec.js +++ b/src/layouts/duplicate-check/duplicate-check.spec.js @@ -259,61 +259,6 @@ describe('duplicateCheck.vue', () => { }); }); }); - describe('getNewOrderSelectionName', () => { - test('answersFromCms null => returns empty string', () => { - // Arrange - const mountOptions = getMountOptions({ - router: { navigate: jest.fn() } - }); - const answersFromCmsValue = null; - mountOptions.mixins = [{ - methods: { - getCmsContent: jest.fn().mockImplementation((_, label) => (label === 'Answers' ? answersFromCmsValue : '')) - } - }]; - - const wrapper = shallowMount(duplicateCheck, mountOptions); - - // Assert - expect(wrapper.vm.getNewOrderSelectionName).toBe(''); - }); - test('answersFromCms empty list => returns empty string', () => { - // Arrange - const mountOptions = getMountOptions({ - router: { navigate: jest.fn() } - }); - const answersFromCmsValue = []; - mountOptions.mixins = [{ - methods: { - getCmsContent: jest.fn().mockImplementation((_, label) => (label === 'Answers' ? answersFromCmsValue : '')) - } - }]; - - const wrapper = shallowMount(duplicateCheck, mountOptions); - - // Assert - expect(wrapper.vm.getNewOrderSelectionName).toBe(''); - }); - test('answersFromCms non-empty list whose first item has no Name property => returns empty string', () => { - // Arrange - const mountOptions = getMountOptions({ - router: { navigate: jest.fn() } - }); - const answersFromCmsValue = [{ test: getRandomString(6, 6) }]; - mountOptions.mixins = [{ - methods: { - getCmsContent: jest.fn().mockImplementation((_, label) => (label === 'Answers' - ? answersFromCmsValue - : '')) - } - }]; - - const wrapper = shallowMount(duplicateCheck, mountOptions); - - // Assert - expect(wrapper.vm.getNewOrderSelectionName).toBe(''); - }); - }); }); describe('Navigation', () => {