@@ -74,15 +74,15 @@ func Test_buildUser(t *testing.T) {
7474 {
7575 name : "should return a valid user with all the fields and using primary email as the only email" ,
7676 given : & admin.User {
77- Addresses : []interface {} {
78- map [string ]interface {} {"formatted" : "formatted work" , "type" : "work" },
79- map [string ]interface {} {"formatted" : "formatted home" , "type" : "home" },
77+ Addresses : []any {
78+ map [string ]any {"formatted" : "formatted work" , "type" : "work" },
79+ map [string ]any {"formatted" : "formatted home" , "type" : "home" },
8080 },
81- Languages : []interface {}{ map [string ]interface {} {"languageCode" : "languageCode" , "preference" : "preferred" }},
82- Organizations : []interface {}{ map [string ]interface {} {"costCenter" : "costCenter" , "department" : "department" , "name" : "name" , "title" : "title" , "primary" : true }},
83- Phones : []interface {} {
84- map [string ]interface {} {"value" : "value work" , "type" : "work" },
85- map [string ]interface {} {"value" : "value home" , "type" : "home" },
81+ Languages : []any { map [string ]any {"languageCode" : "languageCode" , "preference" : "preferred" }},
82+ Organizations : []any { map [string ]any {"costCenter" : "costCenter" , "department" : "department" , "name" : "name" , "title" : "title" , "primary" : true }},
83+ Phones : []any {
84+ map [string ]any {"value" : "value work" , "type" : "work" },
85+ map [string ]any {"value" : "value home" , "type" : "home" },
8686 },
8787 Id : "id" ,
8888 Kind : "kind" ,
@@ -136,16 +136,16 @@ func Test_buildUser(t *testing.T) {
136136 {
137137 name : "should return a valid user with all the fields" ,
138138 given : & admin.User {
139- Addresses : []interface {} {
140- map [string ]interface {} {"formatted" : "formatted work" , "type" : "work" },
141- map [string ]interface {} {"formatted" : "formatted home" , "type" : "home" },
139+ Addresses : []any {
140+ map [string ]any {"formatted" : "formatted work" , "type" : "work" },
141+ map [string ]any {"formatted" : "formatted home" , "type" : "home" },
142142 },
143- Emails : []interface {}{ map [string ]interface {} {"address" : "user@mail.com" , "type" : "work" , "primary" : true }},
144- Languages : []interface {}{ map [string ]interface {} {"languageCode" : "languageCode" , "preference" : "preferred" }},
145- Organizations : []interface {}{ map [string ]interface {} {"costCenter" : "costCenter" , "department" : "department" , "name" : "name" , "title" : "title" , "primary" : true }},
146- Phones : []interface {} {
147- map [string ]interface {} {"value" : "value work" , "type" : "work" },
148- map [string ]interface {} {"value" : "value home" , "type" : "home" },
143+ Emails : []any { map [string ]any {"address" : "user@mail.com" , "type" : "work" , "primary" : true }},
144+ Languages : []any { map [string ]any {"languageCode" : "languageCode" , "preference" : "preferred" }},
145+ Organizations : []any { map [string ]any {"costCenter" : "costCenter" , "department" : "department" , "name" : "name" , "title" : "title" , "primary" : true }},
146+ Phones : []any {
147+ map [string ]any {"value" : "value work" , "type" : "work" },
148+ map [string ]any {"value" : "value home" , "type" : "home" },
149149 },
150150 Id : "id" ,
151151 Kind : "kind" ,
0 commit comments