Skip to content

Commit

Permalink
Merge branch 'main' into fix/export-SearchResultSymbols-from-package-…
Browse files Browse the repository at this point in the history
…root
  • Loading branch information
dopenguin authored Aug 26, 2024
2 parents 2336dba + a9d454d commit aefd459
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/lib/testMountParameters/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## unpublished

- Feature: Extend mock state to match current core state type.
- Fix: Add getters `hasSmallDisplay` and `hasSmallHeight` to the `store` to prevent warnings in tests.

## 1.2.1

Expand Down
5 changes: 5 additions & 0 deletions packages/lib/testMountParameters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export default (): MockParameters => {
namespaced: true,
},
},
getters: {
// Base value. Should be adjusted in tests if necessary for the test.
hasSmallDisplay: () => false,
hasSmallHeight: () => false,
},
}),
emptyRoot: {
map: 1,
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/Gfi/src/components/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ export default Vue.extend({
}
.v-list-item {
// needed for FF
outline-offset: -2px;
&::before {
background: transparent;
}
// needed for FF
outline-offset: -2px;
&:hover {
outline: dashed 2px #3fa535;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// NOTE: action tests currently not type-supported, but working
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { makeActions } from '../store/actions'
import { makeActions } from '../src/store/actions'

jest.mock('../utils/requestGfi', () => ({
jest.mock('../src/utils/requestGfi', () => ({
requestGfi: jest.fn(() => Promise.resolve([])),
}))

jest.mock('../utils/displayFeatureLayer', () => ({
jest.mock('../src/utils/displayFeatureLayer', () => ({
getFeatureDisplayLayer: jest.fn(),
addFeature: jest.fn(),
clear: jest.fn(),
Expand Down

0 comments on commit aefd459

Please sign in to comment.