unit test fix
This commit is contained in:
parent
a0d0325d01
commit
abfc91e600
1 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ import { useMainStore } from '@/store';
|
||||||
import { getPriceOfLineItems } from '@/helpers/price-calculator.js';
|
import { getPriceOfLineItems } from '@/helpers/price-calculator.js';
|
||||||
import coverageStatuses from '@/constants/coverage-statuses';
|
import coverageStatuses from '@/constants/coverage-statuses';
|
||||||
import coverageType from '@/constants/coverage-type';
|
import coverageType from '@/constants/coverage-type';
|
||||||
import { containsRecalParts } from '@/helpers/recal-helper';
|
import { isRecalOrder } from '@/helpers/recal-helper';
|
||||||
|
|
||||||
jest.mock('@/helpers/layout-helper.js', () => jest.fn());
|
jest.mock('@/helpers/layout-helper.js', () => jest.fn());
|
||||||
jest.mock('@/helpers/price-calculator.js', () => ({
|
jest.mock('@/helpers/price-calculator.js', () => ({
|
||||||
|
|
@ -34,7 +34,7 @@ jest.mock('@/helpers/text-helper', () => ({
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@/helpers/recal-helper.js', () => ({
|
jest.mock('@/helpers/recal-helper.js', () => ({
|
||||||
containsRecalParts: jest.fn()
|
isRecalOrder: jest.fn()
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const SAFELITE_PROVIDER = 'Safelite';
|
const SAFELITE_PROVIDER = 'Safelite';
|
||||||
|
|
@ -345,7 +345,7 @@ describe('coverageStatement.vue', () => {
|
||||||
});
|
});
|
||||||
test('returns true when a part in glassParts requires recalibration and recalibration has been added to order', () => {
|
test('returns true when a part in glassParts requires recalibration and recalibration has been added to order', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
containsRecalParts.mockReturnValue(true);
|
isRecalOrder.mockReturnValue(true);
|
||||||
const mainInitialState = {
|
const mainInitialState = {
|
||||||
order: {
|
order: {
|
||||||
lineItems: {
|
lineItems: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue