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 coverageStatuses from '@/constants/coverage-statuses';
|
||||
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/price-calculator.js', () => ({
|
||||
|
|
@ -34,7 +34,7 @@ jest.mock('@/helpers/text-helper', () => ({
|
|||
}));
|
||||
|
||||
jest.mock('@/helpers/recal-helper.js', () => ({
|
||||
containsRecalParts: jest.fn()
|
||||
isRecalOrder: jest.fn()
|
||||
}));
|
||||
|
||||
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', () => {
|
||||
// Arrange
|
||||
containsRecalParts.mockReturnValue(true);
|
||||
isRecalOrder.mockReturnValue(true);
|
||||
const mainInitialState = {
|
||||
order: {
|
||||
lineItems: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue