mirror of
https://github.com/labstack/echo.git
synced 2025-03-17 21:08:05 +02:00
adding testing for c.store nil
This commit is contained in:
parent
ad525c22a0
commit
6c29668168
@ -229,6 +229,10 @@ func TestContext(t *testing.T) {
|
||||
|
||||
// reset
|
||||
c.reset(req, NewResponse(httptest.NewRecorder(), e), e)
|
||||
|
||||
// after reset (nil store) set test
|
||||
c.Set("user", "Joe")
|
||||
assert.Equal(t, "Joe", c.Get("user"))
|
||||
}
|
||||
|
||||
func TestContextPath(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user