WIP migration character

This commit is contained in:
2025-07-28 21:35:29 +02:00
parent d65dbae050
commit c5d5c5a6d4
26 changed files with 198 additions and 186 deletions
+2 -2
View File
@@ -127,7 +127,7 @@ func TestGetMDSkills(t *testing.T) {
assert.Equal(t, http.StatusOK, respRecorder.Code)
// Assert the response body
var listOfCharacter *character.Char
var listOfCharacter *models.Char
err := json.Unmarshal(respRecorder.Body.Bytes(), &listOfCharacter)
assert.NoError(t, err)
assert.Equal(t, "Harsk Hammerhuter, Zen", listOfCharacter.Name)
@@ -182,7 +182,7 @@ func TestUpdateMDSkill(t *testing.T) {
assert.Equal(t, http.StatusCreated, respRecorder.Code)
// Assert the response body
var createdCharacter character.Char
var createdCharacter models.Char
err = json.Unmarshal(respRecorder.Body.Bytes(), &createdCharacter)
assert.NoError(t, err)
assert.Equal(t, "Aragorn", createdCharacter.Name)