summaryrefslogtreecommitdiff
path: root/integration_test.go
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-26 21:55:08 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-26 21:55:42 -0400
commitfe6e4febdb6858695cd86c75a9377ede3ca484f9 (patch)
treeda19461f643fc4e5de66376d2dbc0bd646240c13 /integration_test.go
parent8d2d66256e7104d78611d1ef2e684492d46ea507 (diff)
Add TestErrors
Diffstat (limited to 'integration_test.go')
-rw-r--r--integration_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/integration_test.go b/integration_test.go
index 0805708a8..37c87f30a 100644
--- a/integration_test.go
+++ b/integration_test.go
@@ -130,3 +130,17 @@ func TestIntegrationUrlArgs(t *testing.T) {
t.Fatalf("Expected 404 at '%s'", cacheFn)
}
}
+
+func TestErrors(t *testing.T) {
+ integrationTestSetup()
+
+ _, _, err := deno("testdata/013_async_throw.ts")
+ if err == nil {
+ t.Fatalf("Expected error.")
+ }
+
+ _, _, err = deno("testdata/007_stack_trace.ts")
+ if err == nil {
+ t.Fatalf("Expected error.")
+ }
+}