@@ -49,7 +49,12 @@ func TestErrors_templates(t *testing.T) {
49
49
os .Chdir ("testdata/templates" )
50
50
defer os .Chdir ("../.." )
51
51
52
- c := & up.Config {Name : "app" }
52
+ c := & up.Config {
53
+ Name : "app" ,
54
+ ErrorPages : config.ErrorPages {
55
+ Enable : true ,
56
+ },
57
+ }
53
58
assert .NoError (t , c .Default (), "default" )
54
59
assert .NoError (t , c .Validate (), "validate" )
55
60
@@ -60,7 +65,8 @@ func TestErrors_dir(t *testing.T) {
60
65
c := & up.Config {
61
66
Name : "app" ,
62
67
ErrorPages : config.ErrorPages {
63
- Dir : "testdata/templates" ,
68
+ Dir : "testdata/templates" ,
69
+ Enable : true ,
64
70
},
65
71
}
66
72
@@ -74,7 +80,12 @@ func TestErrors_defaults(t *testing.T) {
74
80
os .Chdir ("testdata/defaults" )
75
81
defer os .Chdir ("../.." )
76
82
77
- c := & up.Config {Name : "app" }
83
+ c := & up.Config {
84
+ Name : "app" ,
85
+ ErrorPages : config.ErrorPages {
86
+ Enable : true ,
87
+ },
88
+ }
78
89
assert .NoError (t , c .Default (), "default" )
79
90
assert .NoError (t , c .Validate (), "validate" )
80
91
@@ -90,9 +101,6 @@ func TestErrors_defaults(t *testing.T) {
90
101
func TestErrors_disabled (t * testing.T ) {
91
102
c := & up.Config {
92
103
Name : "app" ,
93
- ErrorPages : config.ErrorPages {
94
- Disable : true ,
95
- },
96
104
}
97
105
98
106
assert .NoError (t , c .Default (), "default" )
0 commit comments