Skip to content

Commit

Permalink
fix(server): make sure that paths only contains unique entries
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jul 2, 2013
1 parent 1d08c57 commit 5855a22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ generateSpecRunner = (options) ->
globPaths options.globs
.then (specs) ->
paths = paths.concat specs
uniq = []
uniq.push v for v in paths when v not in uniq
paths = uniq
.then ->
globPaths options.sources
.then (sources) ->
Expand Down

0 comments on commit 5855a22

Please sign in to comment.