Properly handle errors in spec tests with Promises

This commit is contained in:
Glavin Wiechert 2015-05-03 12:20:31 -03:00
parent 1787be274b
commit 65ef42fadb
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ describe "BeautifyLanguages", ->
oldHeader="beautified" oldHeader="beautified"
newHeader="expected" newHeader="expected"
diff = JsDiff.createPatch(fileName, oldStr, newStr, oldHeader, newHeader) diff = JsDiff.createPatch(fileName, oldStr, newStr, oldHeader, newHeader)
throw new Error("Beautifier output does not match expected output:\n"+diff) expect(text).toEqual(expectedContents, "Beautifier output does not match expected output:\n"+diff)
# All done! # All done!
beautifyCompleted = true beautifyCompleted = true