diff --git a/src/iss-components/nav-bar/nav-bar.spec.js b/src/iss-components/nav-bar/nav-bar.spec.js
deleted file mode 100644
index bfd921a9..00000000
--- a/src/iss-components/nav-bar/nav-bar.spec.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import { mount } from '@vue/test-utils';
-import navbar from './nav-bar';
-
-const mockMixin = {
- methods: {
- getCmsContent: jest.fn(),
- getFooterInfoBoxHeight: jest.fn(() => 80)
- }
-};
-
-describe('nav-bar.vue', () => {
- test('Should emit ForwardClicked on button click', async () => {
- // Act
- const wrapper = mount(navbar, {
- mixins: [mockMixin]
- });
- wrapper.vm.buttonClick();
- // Assert
- expect(wrapper.emitted()['ForwardClicked'][0]).toHaveBeenCalled;
- });
-
- test('Should emit BackClicked on link click', async () => {
- // Act
- const wrapper = mount(navbar, {
- mixins: [mockMixin]
- });
- wrapper.vm.linkClick();
- // Assert
- expect(wrapper.emitted()['BackClicked'][0]).toHaveBeenCalled;
- });
-
- test('Should change button text when update button text is called', async () => {
- // Act
- const wrapper = mount(navbar, {
- mixins: [mockMixin]
- });
- wrapper.vm.updateButtonText('newText');
-
- // Assert
- expect(wrapper.componentVM.customButtontext).toBe('newText');
- });
-
- test('should run removeLoader fn on buttonMain and return false for onkeydown fn', async () => {
- // Arrange
- const wrapper = mount(navbar, {
- mixins: [mockMixin]
- });
-
- // Act
- wrapper.vm.$refs.buttonMain.removeLoader = jest.fn();
- wrapper.vm.removeLoader();
- const spy = jest.spyOn(document, 'onkeydown');
- document.onkeydown();
-
- // Assert
- expect(wrapper.vm.$refs.buttonMain.removeLoader).toHaveBeenCalled();
- expect(spy).toReturnWith(true);
- });
-});
diff --git a/src/iss-components/nav-bar/nav-bar.vue b/src/iss-components/nav-bar/nav-bar.vue
deleted file mode 100644
index 67b107ee..00000000
--- a/src/iss-components/nav-bar/nav-bar.vue
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js
index 523e10ba..ec29f8cc 100644
--- a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js
+++ b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js
@@ -17,15 +17,15 @@ const testConstants = {
content: {
withInline: 'Button text with {custom:inlineImage} inline.',
noInline: 'Button text with no inline'
- },
+ }
};
let cmsContent;
function generateDefaultProps() {
return {
- buttonLabel: testConstants.noInline,
- altText: testConstants.noInline,
+ buttonLabel: testConstants.content.noInline,
+ altText: testConstants.content.noInline,
groupName: 'payment-method',
value: testConstants.names.A,
buttonImage: testConstants.images.A
@@ -37,9 +37,7 @@ function setupMocks(customMountOptions) {
const mockMixin = {
methods: {
- getCmsContent: jest.fn((widgetName, cmsFieldName) => {
- return cmsContent?.[widgetName]?.[cmsFieldName] ?? '';
- })
+ getCmsContent: jest.fn((widgetName, cmsFieldName) => cmsContent?.[widgetName]?.[cmsFieldName] ?? '')
}
};
diff --git a/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js b/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js
index 229823e4..4e869c3e 100644
--- a/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js
+++ b/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js
@@ -24,9 +24,9 @@ const testConstants = {
imageId: 'idB',
image: 'imageB',
subWidget: 'subWidgetB'
- },
- },
- },
+ }
+ }
+ }
};
let cmsContent;
@@ -53,7 +53,6 @@ function setupMocks(customMountOptions) {
return { wrapper };
}
-
describe('Payment Method Question', () => {
beforeEach(() => {
cmsContent = {
@@ -99,15 +98,15 @@ describe('Payment Method Question', () => {
altText: testConstants.cms.answers.optionA.text,
groupName: 'payment-method',
value: testConstants.cms.answers.optionA.name,
- buttonImage: testConstants.cms.answers.optionA.image,
+ buttonImage: testConstants.cms.answers.optionA.image
},
{
buttonLabel: testConstants.cms.answers.optionB.text,
altText: testConstants.cms.answers.optionB.text,
groupName: 'payment-method',
value: testConstants.cms.answers.optionB.name,
- buttonImage: testConstants.cms.answers.optionB.image,
- },
+ buttonImage: testConstants.cms.answers.optionB.image
+ }
]);
});
@@ -117,7 +116,7 @@ describe('Payment Method Question', () => {
const props = generateDefaultProps();
const { wrapper } = setupMocks({
- propsData: props,
+ propsData: props
});
// Act
diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue
index c65cffd4..e5ab8427 100644
--- a/src/layouts/payment-method/payment-method.vue
+++ b/src/layouts/payment-method/payment-method.vue
@@ -4,9 +4,6 @@
v-slot="{ meta }"
@submit="onSubmit"
@invalidSubmit="onInvalidSubmit">
-