@@ -45,7 +45,7 @@ test('Successfully escapes parens in strings', t => {
45
45
} ) ;
46
46
47
47
test ( 'Can be called consecutively on returned result of previous call' , t => {
48
- const originalTweet = 'Hey @iansinnott, check this link https://github.com/iansinnott/ #github ' ;
48
+ const originalTweet = 'Hey @iansinnott, check out this link https://github.com/iansinnott/ Hope to see you at #reactconf ' ;
49
49
let reactReplacedTweet ;
50
50
51
51
// Match URLs
@@ -54,9 +54,9 @@ test('Can be called consecutively on returned result of previous call', t => {
54
54
) ) ;
55
55
56
56
t . same ( reactReplacedTweet , [
57
- 'Hey @iansinnott, check this link ' ,
57
+ 'Hey @iansinnott, check out this link ' ,
58
58
{ type : 'url' , value : 'https://github.com/iansinnott/' } ,
59
- ' #github ' ,
59
+ ' Hope to see you at #reactconf ' ,
60
60
] ) ;
61
61
62
62
// Match @-mentions
@@ -67,9 +67,9 @@ test('Can be called consecutively on returned result of previous call', t => {
67
67
t . same ( reactReplacedTweet , [
68
68
'Hey ' ,
69
69
{ type : 'mention' , value : '@iansinnott' } ,
70
- ', check this link ' ,
70
+ ', check out this link ' ,
71
71
{ type : 'url' , value : 'https://github.com/iansinnott/' } ,
72
- ' #github ' ,
72
+ ' Hope to see you at #reactconf ' ,
73
73
] ) ;
74
74
75
75
// Match hashtags
@@ -80,10 +80,10 @@ test('Can be called consecutively on returned result of previous call', t => {
80
80
t . same ( reactReplacedTweet , [
81
81
'Hey ' ,
82
82
{ type : 'mention' , value : '@iansinnott' } ,
83
- ', check this link ' ,
83
+ ', check out this link ' ,
84
84
{ type : 'url' , value : 'https://github.com/iansinnott/' } ,
85
- ' ' ,
86
- { type : 'hashtag' , value : '#github ' } ,
85
+ ' Hope to see you at ' ,
86
+ { type : 'hashtag' , value : '#reactconf ' } ,
87
87
'' ,
88
88
] ) ;
89
89
} ) ;
0 commit comments