mirror of
https://github.com/astaxie/beego.git
synced 2025-07-07 07:10:19 +00:00
renamed functions for clarity
This commit is contained in:
@ -97,7 +97,7 @@ func oldMap() M {
|
||||
return m
|
||||
}
|
||||
|
||||
func TestExecJSON(t *testing.T) {
|
||||
func TestWriteJSON(t *testing.T) {
|
||||
t.Log("Testing the adding of JSON to the response")
|
||||
|
||||
w := httptest.NewRecorder()
|
||||
@ -105,7 +105,7 @@ func TestExecJSON(t *testing.T) {
|
||||
|
||||
res, _ := json.Marshal(originalBody)
|
||||
|
||||
execJSON(w, res)
|
||||
writeJSON(w, res)
|
||||
|
||||
decodedBody := []int{}
|
||||
err := json.NewDecoder(w.Body).Decode(&decodedBody)
|
||||
|
Reference in New Issue
Block a user