cursor fix - remove unit tests for removed computed property
This commit is contained in:
parent
73e2bccb54
commit
95c0719bcc
1 changed files with 0 additions and 55 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue