Skip to content

Commit

Permalink
fix public profile test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbryant12 committed Mar 20, 2024
1 parent 1c876cf commit ef47cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/server/public-profile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('#Paymail Server - Get Public Profile', () => {
const baseUrl = 'http://localhost:3000';
const routes = [
new PublicProfileRoute((name, domain) => {
return { name, domain, avatarUrl: `https://avatar.com/${name}@${domain}` };
return { name, domain, avatar: `https://avatar.com/${name}@${domain}` };
}),
];
const paymailRouter = new PaymailRouter(baseUrl, routes);
Expand All @@ -21,7 +21,7 @@ describe('#Paymail Server - Get Public Profile', () => {
it('should get public profile for user paymail', async () => {
const response = await request(app).get('/public-profile/satoshi@bsv.org');
expect(response.statusCode).toBe(200);
expect(response.body.avatarUrl).toEqual('https://avatar.com/satoshi@bsv.org');
expect(response.body.avatar).toEqual('https://avatar.com/satoshi@bsv.org');
expect(response.body.name).toEqual('satoshi');
});
});

0 comments on commit ef47cd3

Please sign in to comment.