forked from DamienCassou/vdirel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue DamienCassou#10 where empty N and FN fields would throw a…
…n error Now just returns an empty string
- Loading branch information
Daniel Bankmann
committed
Nov 4, 2019
1 parent
255496e
commit ff75055
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,5 +85,14 @@ | |
'(("Damien Cassou <[email protected]>" . ("Damien Cassou" "[email protected]")) | ||
("Damien Cassou <[email protected]>" . ("Damien Cassou" "[email protected]"))))))) | ||
|
||
|
||
|
||
(describe "contact-no-name" | ||
(it "contacts without FN or F should return empty string" | ||
(expect (vdirel-contact-fullname | ||
'(("EMAIL" . "[email protected]") | ||
("EMAIL;TYPE=home" . "[email protected]"))) | ||
:to-equal ""))) | ||
|
||
(provide 'vdirel-test) | ||
;;; vdirel-test.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters