@@ -20,14 +20,14 @@ describe("Author", () => {
20
20
it ( "should return an initialized instance with a non-empty map" , ( ) => {
21
21
const author = Author . fromJson ( {
22
22
comment_author : "Cédric Belin" ,
23
- comment_author_email :
"[email protected] " ,
23
+ comment_author_email :
"[email protected] " ,
24
24
comment_author_url : "https://belin.io" ,
25
25
user_agent : "Mozilla/5.0" ,
26
26
user_ip : "127.0.0.1" ,
27
27
user_role : "administrator"
28
28
} ) ;
29
29
30
- equal ( author . email , "[email protected] " ) ;
30
+ equal ( author . email , "[email protected] " ) ;
31
31
equal ( author . ipAddress , "127.0.0.1" ) ;
32
32
equal ( author . role , AuthorRole . Administrator ) ;
33
33
ok ( author . url instanceof URL ) ;
@@ -45,7 +45,7 @@ describe("Author", () => {
45
45
46
46
it ( "should return a non-empty map with an initialized instance" , ( ) => {
47
47
const json = new Author ( {
48
-
48
+
49
49
ipAddress : "192.168.0.1" ,
50
50
name : "Cédric Belin" ,
51
51
url : "https://belin.io" ,
@@ -54,7 +54,7 @@ describe("Author", () => {
54
54
55
55
equal ( Object . keys ( json ) . length , 5 ) ;
56
56
equal ( json . comment_author , "Cédric Belin" ) ;
57
- equal ( json . comment_author_email , "[email protected] " ) ;
57
+ equal ( json . comment_author_email , "[email protected] " ) ;
58
58
equal ( json . comment_author_url , "https://belin.io/" ) ;
59
59
equal ( json . user_agent , "Mozilla/5.0" ) ;
60
60
equal ( json . user_ip , "192.168.0.1" ) ;
0 commit comments