Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 22756a0

Browse files
committed
Assert initial expansion state
1 parent efd4d42 commit 22756a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/tree-view-spec.coffee

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,17 +2665,21 @@ describe "TreeView", ->
26652665
fs.mkdirSync(entriesPath)
26662666
atom.project.setPaths([projectPath])
26672667
treeView.roots[0].expand()
2668+
expect(treeView.roots[0].directory.serializeExpansionState()).toEqual
2669+
isExpanded: true
2670+
entries:
2671+
entries:
2672+
isExpanded: false
2673+
entries: {}
26682674

26692675
fs.removeSync(entriesPath)
26702676
treeView.roots[0].reload()
2671-
26722677
expect(treeView.roots[0].directory.serializeExpansionState()).toEqual
26732678
isExpanded: true
26742679
entries: {}
26752680

26762681
fs.mkdirSync(path.join(projectPath, 'other'))
26772682
treeView.roots[0].reload()
2678-
26792683
expect(treeView.roots[0].directory.serializeExpansionState()).toEqual
26802684
isExpanded: true
26812685
entries:

0 commit comments

Comments
 (0)