Skip to content

Commit 6302c75

Browse files
committed
Add tests
1 parent 923eefc commit 6302c75

File tree

4 files changed

+548
-3
lines changed

4 files changed

+548
-3
lines changed

packages/core/src/util/jexl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export default function JexlF(/* config?: any*/) {
88
// ones passed in
99

1010
// below are core functions
11-
j.addFunction('get', (feature: Feature, data: string) => feature?.get(data))
11+
j.addFunction('get', (feature: Feature | undefined, data: string) =>
12+
feature?.get(data),
13+
)
1214
j.addFunction('parent', (feature: Feature) => feature.parent?.())
1315

1416
j.addFunction('id', (feature: Feature) => feature.id())

plugins/linear-genome-view/src/BaseLinearDisplay/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mergeIntervals, SimpleFeature } from '@jbrowse/core/util'
1+
import { SimpleFeature, mergeIntervals } from '@jbrowse/core/util'
22

33
import type RpcManager from '@jbrowse/core/rpc/RpcManager'
44
import type { Feature } from '@jbrowse/core/util'

0 commit comments

Comments
 (0)