Skip to content

Commit c596768

Browse files
committed
fix: space should be %20
1 parent 8591cbe commit c596768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__tests__/redirector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ describe('GET /r/:postId', () => {
111111
.getRepository(ArticlePost)
112112
.update(
113113
{ id: 'p1' },
114-
{ url: 'http://p1.com/hello%world/%f0%9f%9a%80-to-the-🌔' },
114+
{ url: 'http://p1.com/hello%20world/%f0%9f%9a%80-to-the-🌔' },
115115
);
116116
return request(app.server)
117117
.get('/r/p1')
118118
.expect(302)
119119
.expect(
120120
'Location',
121-
'http://p1.com/hello%world/%f0%9f%9a%80-to-the-%F0%9F%8C%94?ref=dailydev',
121+
'http://p1.com/hello%20world/%f0%9f%9a%80-to-the-%F0%9F%8C%94?ref=dailydev',
122122
);
123123
});
124124
});

0 commit comments

Comments
 (0)