Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 25, 2023
1 parent 12306b8 commit ed726bd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ import React from 'react'

import { DETAILS_PANE_STEP_SIZE, DetailsPane } from './DetailsPane'
import { VizItemProperty } from 'neo4j-arc/common'
import { GraphStyleModel, VizItem } from 'neo4j-arc/graph-visualization'
import {
GraphStyleModel,
VizItem,
NodeModel
} from 'neo4j-arc/graph-visualization'

describe('<DetailsPane />', () => {
const mockGraphStyle = new GraphStyleModel()
Expand Down Expand Up @@ -66,7 +70,9 @@ describe('<DetailsPane />', () => {
item: {
id: 'abc',
type: 'abc2',
propertyList
propertyList,
source: new NodeModel('1', [], {}, {}),
target: new NodeModel('2', [], {}, {})
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { render, screen, waitFor } from '@testing-library/react'
import React from 'react'

import { VizItem } from 'neo4j-arc/graph-visualization'
import { VizItem, NodeModel } from 'neo4j-arc/graph-visualization'

import {
PropertiesTable,
Expand Down Expand Up @@ -62,7 +62,9 @@ describe('<DetailsPane />', () => {
item: {
id: 'abc',
type: 'abc2',
propertyList
propertyList,
source: new NodeModel('1', [], {}, {}),
target: new NodeModel('2', [], {}, {})
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
import { VizItemProperty } from 'neo4j-arc/common'
import { GraphStyleModel } from '../../models/GraphStyle'
import { VizItem } from '../../types'
import { NodeModel } from 'neo4j-arc/graph-visualization'

describe('<DetailsPane />', () => {
const mockGraphStyle = new GraphStyleModel()
Expand Down Expand Up @@ -70,7 +71,9 @@ describe('<DetailsPane />', () => {
item: {
id: 'abc',
type: 'abc2',
propertyList
propertyList,
source: new NodeModel('1', [], {}, {}),
target: new NodeModel('2', [], {}, {})
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/neo4j-arc/graph-visualization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

export { NodeModel } from './models/Node'
export { GraphModel } from './models/Graph'
export { GraphStyleModel, Selector } from './models/GraphStyle'

Expand All @@ -37,7 +38,7 @@ export type { OverviewPaneProps } from './GraphVisualizer/DefaultPanelContent/De
export {
REL_ON_CANVAS_CREATE,
NODE_ON_CANVAS_CREATE,
NODE_PROP_UPDATE,
NODE_PROP_UPDATE,
NODE_LABEL_UPDATE,
REL_TYPE_UPDATE
} from './GraphVisualizer/Graph/GraphEventHandlerModel'
Expand Down

0 comments on commit ed726bd

Please sign in to comment.