@@ -31,26 +31,31 @@ describe('GitHubTabView', function() {
31
31
32
32
return (
33
33
< GitHubTabView
34
- workspace = { atomEnv . workspace }
35
34
refresher = { new Refresher ( ) }
36
- loginModel = { new GithubLoginModel ( InMemoryStrategy ) }
37
35
rootHolder = { new RefHolder ( ) }
38
36
37
+ loginModel = { new GithubLoginModel ( InMemoryStrategy ) }
38
+
39
+ workspace = { atomEnv . workspace }
39
40
workingDirectory = { repo . getWorkingDirectoryPath ( ) }
41
+ getCurrentWorkDirs = { ( ) => [ ] }
42
+ changeWorkingDirectory = { ( ) => { } }
43
+ contextLocked = { false }
44
+ setContextLock = { ( ) => { } }
40
45
repository = { repo }
41
- branches = { new BranchSet ( ) }
42
- currentBranch = { nullBranch }
46
+
43
47
remotes = { new RemoteSet ( ) }
44
48
currentRemote = { nullRemote }
45
49
manyRemotesAvailable = { false }
46
- pushInProgress = { false }
47
50
isLoading = { false }
51
+ branches = { new BranchSet ( ) }
52
+ currentBranch = { nullBranch }
53
+ pushInProgress = { false }
48
54
55
+ handleWorkDirSelect = { ( ) => { } }
49
56
handlePushBranch = { ( ) => { } }
50
57
handleRemoteSelect = { ( ) => { } }
51
- changeWorkingDirectory = { ( ) => { } }
52
58
onDidChangeWorkDirs = { ( ) => { } }
53
- getCurrentWorkDirs = { ( ) => [ ] }
54
59
openCreateDialog = { ( ) => { } }
55
60
openBoundPublishDialog = { ( ) => { } }
56
61
openCloneDialog = { ( ) => { } }
@@ -125,7 +130,7 @@ describe('GitHubTabView', function() {
125
130
const currentRemote = new Remote ( 'aaa' , '[email protected] :aaa/bbb.git' ) ;
126
131
const changeWorkingDirectory = sinon . spy ( ) ;
127
132
const wrapper = shallow ( buildApp ( { currentRemote, changeWorkingDirectory} ) ) ;
128
- wrapper . find ( 'GithubTabHeaderContainer' ) . prop ( 'handleWorkDirSelect ' ) ( { target : { value : 'some-path' } } ) ;
133
+ wrapper . find ( 'GithubTabHeaderContainer' ) . prop ( 'changeWorkingDirectory ' ) ( 'some-path' ) ;
129
134
assert . isTrue ( changeWorkingDirectory . calledWith ( 'some-path' ) ) ;
130
135
} ) ;
131
136
} ) ;
0 commit comments