mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
fix #2158 and more
This commit is contained in:
@@ -26,7 +26,7 @@ func TestDeprecated(t *testing.T) {
|
||||
e := httptest.New(t, app)
|
||||
|
||||
ex := e.GET("/").WithHeader(versioning.AcceptVersionHeaderKey, "1.0").Expect()
|
||||
ex.Status(iris.StatusOK).Body().Equal("1.0")
|
||||
ex.Status(iris.StatusOK).Body().IsEqual("1.0")
|
||||
ex.Header("X-API-Warn").Equal(opts.WarnMessage)
|
||||
expectedDateStr := opts.DeprecationDate.Format(app.ConfigurationReadOnly().GetTimeFormat())
|
||||
ex.Header("X-API-Deprecation-Date").Equal(expectedDateStr)
|
||||
|
||||
Reference in New Issue
Block a user