JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168)
This commit is contained in:
parent
4d799f8820
commit
0aefebb728
5 changed files with 43 additions and 46 deletions
22
tests/js/tunittest_error.nim
Normal file
22
tests/js/tunittest_error.nim
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
discard """
|
||||
exitcode: 1
|
||||
outputsub: "[FAILED] with exception"
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
proc ddd() =
|
||||
raise newException(IOError, "didn't do stuff")
|
||||
|
||||
proc ccc() =
|
||||
ddd()
|
||||
|
||||
proc bbb() =
|
||||
ccc()
|
||||
|
||||
proc aaa() =
|
||||
bbb()
|
||||
|
||||
test "with exception":
|
||||
check 3 == 3
|
||||
aaa()
|
||||
Loading…
Add table
Add a link
Reference in a new issue