Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Jan 12, 2024
1 parent 4cf678c commit ea6fc7f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions internal/projector/slide/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (

// DbUser is the class with methods to get needed User Informations
type DbUser struct {
Username string `json:"username"`
Title string `json:"title"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Level string `json:"structure_level"`
Username string `json:"username"`
Title string `json:"title"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Level string `json:"structure_level"`
}

// NewUser gets the user from datastore and return the user as DbUser struct
Expand Down
24 changes: 12 additions & 12 deletions internal/projector/slide/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ func TestUser(t *testing.T) {
{
"Title Firstname Lastname Username DefaultLevel",
map[string]string{
"user/1/id": "1",
"user/1/username": `"jonny123"`,
"user/1/title": `"Dr."`,
"user/1/first_name": `"Jonny"`,
"user/1/last_name": `"Bo"`,
"user/1/id": "1",
"user/1/username": `"jonny123"`,
"user/1/title": `"Dr."`,
"user/1/first_name": `"Jonny"`,
"user/1/last_name": `"Bo"`,
},
`{"user":"Dr. Jonny Bo"}`,
},
{
"Username DefaultLevel",
map[string]string{
"user/1/id": "1",
"user/1/username": `"jonny123"`,
"user/1/id": "1",
"user/1/username": `"jonny123"`,
},
`{"user":"jonny123"}`,
},
Expand All @@ -132,11 +132,11 @@ func TestUserWithoutMeeting(t *testing.T) {
userSlide := setup(t)

data := convertData(map[string]string{
"user/1/id": "1",
"user/1/username": `"jonny123"`,
"user/1/title": `"Dr."`,
"user/1/first_name": `"Jonny"`,
"user/1/last_name": `"Bo"`,
"user/1/id": "1",
"user/1/username": `"jonny123"`,
"user/1/title": `"Dr."`,
"user/1/first_name": `"Jonny"`,
"user/1/last_name": `"Bo"`,
})

ds := dsmock.Stub(data)
Expand Down

0 comments on commit ea6fc7f

Please sign in to comment.