File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 109109 (insert (car (last args)))))
110110 (dashboard-project-status-insert-body)))
111111 (buffer-string )))
112+ (desc " dashboard-project-status-git-local-is-behind? returns non nil when branch is behind" )
113+ (expect t
114+ (mock (git-run " status" " -uno" ) => " Your branch is behind" )
115+ (dashboard-project-status-git-local-is-behind?) )
116+ (desc " dashboard-project-status-git-local-is-behind? returns nil when branch is not behind" )
117+ (expect nil
118+ (mock (git-run " status" " -uno" ) => " " )
119+ (dashboard-project-status-git-local-is-behind?) )
120+ (desc " dashboard-project-status-git-unstaged-files returns a list of unstaged files" )
121+ (expect '(" foo" " bar" )
122+ (mock (git-run " diff" " --name-only" ) => " foo\n bar" )
123+ (dashboard-project-status-git-unstaged-files))
112124 )
You can’t perform that action at this time.
0 commit comments