@jbrowse/plugin-grid-bookmark 1.5.1 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin-grid-bookmark.cjs.development.js +21 -27
- package/dist/plugin-grid-bookmark.cjs.development.js.map +1 -1
- package/dist/plugin-grid-bookmark.cjs.production.min.js +1 -1
- package/dist/plugin-grid-bookmark.cjs.production.min.js.map +1 -1
- package/dist/plugin-grid-bookmark.esm.js +21 -27
- package/dist/plugin-grid-bookmark.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/GridBookmarkWidget/components/GridBookmarkWidget.test.js +0 -12
- package/src/GridBookmarkWidget/components/ImportBookmarks.tsx +1 -3
|
@@ -6,18 +6,6 @@ import { createTestSession } from '@jbrowse/web/src/rootModel'
|
|
|
6
6
|
|
|
7
7
|
import GridBookmarkWidget from './GridBookmarkWidget'
|
|
8
8
|
|
|
9
|
-
// need to mock out data grid and force all columns to render
|
|
10
|
-
// https://github.com/mui-org/material-ui-x/issues/1151
|
|
11
|
-
jest.mock('@mui/x-data-grid', () => {
|
|
12
|
-
const { DataGrid } = jest.requireActual('@mui/x-data-grid')
|
|
13
|
-
return {
|
|
14
|
-
...jest.requireActual('@mui/x-data-grid'),
|
|
15
|
-
DataGrid: props => {
|
|
16
|
-
return <DataGrid {...props} columnBuffer={6} />
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
|
|
21
9
|
jest.mock('file-saver', () => {
|
|
22
10
|
return {
|
|
23
11
|
...jest.requireActual('file-saver'),
|
|
@@ -110,9 +110,7 @@ function ImportBookmarks({
|
|
|
110
110
|
if (!location) {
|
|
111
111
|
return
|
|
112
112
|
}
|
|
113
|
-
const data =
|
|
114
|
-
'utf8',
|
|
115
|
-
)) as string
|
|
113
|
+
const data = await openLocation(location).readFile('utf8')
|
|
116
114
|
const regions = data
|
|
117
115
|
.split('\n')
|
|
118
116
|
.filter(f => !!f.trim())
|