Skip to content

Commit

Permalink
Add locality to generate address test
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
  • Loading branch information
charlieegan3 committed Nov 11, 2021
1 parent 7068ecb commit 6b9c6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/vcard/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ END:VCARD`,
{
"Display Name": "John Appleseed",
"JSON Addresses": `[
{"ExtendedAddress":"","StreetAddress":"15 Whitby Road","Region":"London","PostalCode":"IV65NE","Country":"UK"},
{"ExtendedAddress":"","StreetAddress":"15 Whitby Road","Locality":"Highgate", "Region":"London","PostalCode":"IV65NE","Country":"UK"},
{"ExtendedAddress":"Flat 2","StreetAddress":"Sweden Road","Region":"Vaxjo","PostalCode":"12345","Country":"Sweden"}]`,
},
},
ExpectedOutput: `BEGIN:VCARD
VERSION:4.0
ADR:;;15 Whitby Road;;London;IV65NE;UK
ADR:;;15 Whitby Road;Highgate;London;IV65NE;UK
ADR:;Flat 2;Sweden Road;;Vaxjo;12345;Sweden
FN:John Appleseed
N:Appleseed;John;;;
Expand Down

0 comments on commit 6b9c6cd

Please sign in to comment.