Rewrite underscore code

This commit is contained in:
Paul Betts
2013-09-25 18:03:00 -07:00
parent 903a1b9bf0
commit 8b73224fe3

View File

@@ -315,11 +315,14 @@ describe "Project", ->
console.log(paths)
try
expect(paths.length).toBe inputs.length
matches.forEach (match) ->
expect(match).toEqual 'evil'
inputs.forEach (file) ->
expect(_.some(paths, (p) -> p.endsWith(file)))
itWorked = false
paths.forEach (p) ->
itWorked = itWorked || p.endsWith(file)
expect(itWorked)
finally
inputs.forEach (input) ->
fs.unlinkSync (path.join(target, input))