@jbrowse/plugin-grid-bookmark 1.5.0 → 1.5.4

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.
@@ -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 = (await openLocation(location).readFile(
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())