Skip to content

Commit

Permalink
clean up of test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 23, 2024
1 parent 1536de8 commit fcd3723
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/DummyApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Api from '../src/api/Api'
import Api from '@/api/Api'
import {
ApiInfo,
GeocodingResult,
Expand All @@ -7,7 +7,7 @@ import {
RoutingResult,
RoutingResultInfo,
Bbox,
} from '../src/api/graphhopper'
} from '@/api/graphhopper'
import { POIAndQuery, POIQuery } from '@/pois/AddressParseResult'

export default class DummyApi implements Api {
Expand Down
2 changes: 1 addition & 1 deletion test/NavBar.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NavBar from '@/NavBar'
import QueryStore, { QueryPoint, QueryPointType } from '../src/stores/QueryStore'
import QueryStore, { QueryPoint, QueryPointType } from '@/stores/QueryStore'
import DummyApi from './DummyApi'
import { SelectMapLayer, SetPoint, SetVehicleProfile } from '@/actions/Actions'
import Dispatcher from '@/stores/Dispatcher'
Expand Down
2 changes: 1 addition & 1 deletion test/Translation.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { setTranslation } from '../src/translation/Translation'
import { setTranslation } from '@/translation/Translation'

describe('translate', () => {
it('should translate', () => {
Expand Down
3 changes: 1 addition & 2 deletions test/poi/AddressParseResult.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AddressParseResult, POIPhrase } from '@/pois/AddressParseResult'
import fetchMock from 'jest-fetch-mock'
import { AddressParseResult } from '@/pois/AddressParseResult'
import { getTranslation, setTranslation } from '@/translation/Translation'

beforeAll(() => {
Expand Down
6 changes: 3 additions & 3 deletions test/stores/ApiInfoStore.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ApiInfoStore from '../../src/stores/ApiInfoStore'
import { InfoReceived } from '../../src/actions/Actions'
import { ApiInfo } from '../../src/api/graphhopper'
import ApiInfoStore from '@/stores/ApiInfoStore'
import { InfoReceived } from '@/actions/Actions'
import { ApiInfo } from '@/api/graphhopper'

describe('ApiInfoStore', () => {
it('should accept an InfoReceived action and store its result', () => {
Expand Down

0 comments on commit fcd3723

Please sign in to comment.