Skip to content

Commit d82fe4d

Browse files
committed
Update test example
1 parent f6a1b03 commit d82fe4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test('Successfully escapes parens in strings', t => {
4545
});
4646

4747
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';
4949
let reactReplacedTweet;
5050

5151
// Match URLs
@@ -54,9 +54,9 @@ test('Can be called consecutively on returned result of previous call', t => {
5454
));
5555

5656
t.same(reactReplacedTweet, [
57-
'Hey @iansinnott, check this link ',
57+
'Hey @iansinnott, check out this link ',
5858
{ type: 'url', value: 'https://github.com/iansinnott/' },
59-
' #github',
59+
' Hope to see you at #reactconf',
6060
]);
6161

6262
// Match @-mentions
@@ -67,9 +67,9 @@ test('Can be called consecutively on returned result of previous call', t => {
6767
t.same(reactReplacedTweet, [
6868
'Hey ',
6969
{ type: 'mention', value: '@iansinnott' },
70-
', check this link ',
70+
', check out this link ',
7171
{ type: 'url', value: 'https://github.com/iansinnott/' },
72-
' #github',
72+
' Hope to see you at #reactconf',
7373
]);
7474

7575
// Match hashtags
@@ -80,10 +80,10 @@ test('Can be called consecutively on returned result of previous call', t => {
8080
t.same(reactReplacedTweet, [
8181
'Hey ',
8282
{ type: 'mention', value: '@iansinnott' },
83-
', check this link ',
83+
', check out this link ',
8484
{ type: 'url', value: 'https://github.com/iansinnott/' },
85-
' ',
86-
{ type: 'hashtag', value: '#github' },
85+
' Hope to see you at ',
86+
{ type: 'hashtag', value: '#reactconf' },
8787
'',
8888
]);
8989
});

0 commit comments

Comments
 (0)