Skip to content

Commit

Permalink
refactor: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 27, 2024
1 parent f0052a6 commit 26bb118
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion apps/delivery-options/src/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ exports[`exports > exports from index.ts 1`] = `
"useActiveCarriers",
"useAddressStore",
"useBreakpoints",
"useCarrierSettings",
"useConfigStore",
"useCurrentPlatform",
"useDateFormat",
Expand Down
1 change: 0 additions & 1 deletion apps/delivery-options/src/composables/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * from './events';
export * from './useActiveCarriers';
export * from './useBreakpoints';
export * from './useCarrierSettings';
export * from './useCurrentPlatform';
export * from './useDateFormat';
export * from './useFeatures';
Expand Down
12 changes: 0 additions & 12 deletions apps/delivery-options/src/composables/useCarrierSettings.ts

This file was deleted.

7 changes: 1 addition & 6 deletions apps/delivery-options/src/utils/getResolvedValue.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {afterEach, beforeEach, describe, expect, it} from 'vitest';
import {beforeEach, describe, expect, it} from 'vitest';
import {createPinia, setActivePinia} from 'pinia';
import {CarrierSetting, KEY_CARRIER_SETTINGS, KEY_CONFIG} from '@myparcel-do/shared';
import {CarrierName} from '@myparcel/constants';
import {useCarrierSettings} from '../composables';
import {mockDeliveryOptionsConfig} from '../__tests__';
import {getResolvedValue} from './getResolvedValue';

Expand All @@ -11,10 +10,6 @@ describe('getResolvedValue', () => {
setActivePinia(createPinia());
});

afterEach(() => {
useCarrierSettings.clear();
});

it('returns the general value when no carrier is given', () => {
mockDeliveryOptionsConfig({
[KEY_CONFIG]: {
Expand Down

0 comments on commit 26bb118

Please sign in to comment.