summaryrefslogtreecommitdiffstats
path: root/model/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/utils_test.go')
-rw-r--r--model/utils_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/model/utils_test.go b/model/utils_test.go
index 5d9289a9a..dbe1e59be 100644
--- a/model/utils_test.go
+++ b/model/utils_test.go
@@ -37,6 +37,13 @@ func TestAppError(t *testing.T) {
err.Error()
}
+func TestAppErrorJunk(t *testing.T) {
+ rerr := AppErrorFromJson(strings.NewReader("<html><body>This is a broken test</body></html>"))
+ if "body: <html><body>This is a broken test</body></html>" != rerr.DetailedError {
+ t.Fatal()
+ }
+}
+
func TestMapJson(t *testing.T) {
m := make(map[string]string)