-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add one more test case to utils/isDeepEqual * Improve utils/merge and add new test case * Add test to utils/throwErr * Change tests structure. Add components folders * Lowercase naming in test files * Update jest * Remove plus sign from downloads badge * Improve createForceSimulation docs * Add spec for graph helper createForceSimulation * Organize code in graph helper. Fix lint helper test file * Improve graph validation err messages * Graph helper tests for when no valid graph data is provided * Add tests for initializeGraphState * initializeGraphState tests * Improve util test descriptions * Update graph.helper tests * Move snapshot tests into separate test folder * Move _graphForcesConfig private func to top of component
- Loading branch information
1 parent
9e1a653
commit 72efff6
Showing
19 changed files
with
803 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
/*eslint max-len: ["error", 200]*/ | ||
export default { | ||
GRAPH_NO_ID_PROP: "id prop not defined! id property is mandatory and it should be unique.", | ||
STATIC_GRAPH_DATA_UPDATE: "a static graph cannot receive new data (nodes or links).\ | ||
Make sure config.staticGraph is set to true if you want to update graph data", | ||
INVALID_LINKS: "you provided a invalid links data structure.\ | ||
Links source and target attributes must point to an existent node", | ||
INSUFFICIENT_DATA: "you have not provided enough data for react-d3-graph to render something.\ | ||
You need to provide at least one node" | ||
STATIC_GRAPH_DATA_UPDATE: "a static graph cannot receive new data (nodes or links). Make sure config.staticGraph is set to true if you want to update graph data", | ||
INVALID_LINKS: "you provided a invalid links data structure. Links source and target attributes must point to an existent node", | ||
INSUFFICIENT_DATA: "you have not provided enough data for react-d3-graph to render something. You need to provide at least one node" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.