Skip to content

Commit f8773dc

Browse files
v1.7.1
1 parent 0ecfbe0 commit f8773dc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

build/arrayToTree.spec.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "performant-array-to-tree",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.",
55
"keywords": [
66
"array to tree",

src/arrayToTree.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ describe('arrayToTree', () => {
250250
{ id: '1', parentId: 'root', foo: 'bar' },
251251
{ id: 'root', parentId: null, bar: 'bar' },
252252
], { dataField: null, throwIfOrphans: true })).to.deep.equal([
253-
{ id: "root", parentId: null, bar: "bar", children: [
254-
{ id: "2", parentId: "root", foo: "bar", children: [] },
255-
{ id: "1", parentId: "root", foo: "bar", children: [
256-
{ id: "1-1", parentId: "1", foo: "bar", children: [] },
253+
{ id: 'root', parentId: null, bar: 'bar', children: [
254+
{ id: '2', parentId: 'root', foo: 'bar', children: [] },
255+
{ id: '1', parentId: 'root', foo: 'bar', children: [
256+
{ id: '1-1', parentId: '1', foo: 'bar', children: [] },
257257
]},
258258
]},
259259
])

0 commit comments

Comments
 (0)