Properly handle errors in spec tests with Promises
This commit is contained in:
parent
1787be274b
commit
65ef42fadb
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue