Skip to content

Commit 3bd84ec

Browse files
committed
updated test file for FileNode.jsx
1 parent 1220211 commit 3bd84ec

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

client/modules/IDE/components/FileNode.unit.test.jsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,28 @@ describe('<FileNode />', () => {
5151
};
5252

5353
const mockFiles = [
54-
{ id: '0', name: props.name, parentId: null },
55-
{ id: '1', name: 'sketch.js', parentId: '0', isSelectedFile: true }
54+
{
55+
id: '0',
56+
name: props.name,
57+
parentId: 'parent-folder-id'
58+
},
59+
{
60+
id: '1',
61+
name: 'sketch.js',
62+
parentId: '0',
63+
isSelectedFile: true
64+
},
65+
{
66+
id: 'parent-folder-id',
67+
name: 'parent',
68+
parentId: null,
69+
children: ['0', 'some-other-file-id']
70+
},
71+
{
72+
id: 'some-other-file-id',
73+
name: 'duplicate.js',
74+
parentId: 'parent-folder-id'
75+
}
5676
];
5777

5878
const store = mockStore({

0 commit comments

Comments
 (0)