Skip to content

Commit

Permalink
[cleanup] Don't kill buffer explicitly in mocha-run
Browse files Browse the repository at this point in the history
`compile` takes care of erasing buffer and killing existing process
automatically

Closes #52
  • Loading branch information
felipeochoa committed Jan 13, 2018
1 parent 2937647 commit 83d430d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mocha.el
Expand Up @@ -237,8 +237,6 @@ If MOCHA-FILE is specified run just that file otherwise run
MOCHA-PROJECT-TEST-DIRECTORY.
IF TEST is specified run mocha with a grep for just that test."
(when (get-buffer "*mocha tests*")
(kill-buffer "*mocha tests*"))
(let ((test-command-to-run (mocha-generate-command nil mocha-file test))
(default-directory (mocha-find-project-root))
(compilation-buffer-name-function (lambda (_) "" "*mocha tests*")))
Expand Down

0 comments on commit 83d430d

Please sign in to comment.