Skip to content

Commit

Permalink
chore(test): Updated user tests to expect sha256 instead of md5 hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Oct 23, 2023
1 parent ba45970 commit c681aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/types/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test('should create user', () => {
expect(user.name).toBe('ole');
expect(user.email).toBe('[email protected]');
expect(user.imageUrl).toBe(
'https://gravatar.com/avatar/d8ffeba65ee5baf57e4901690edc8e1b?size=42&default=retro',
'https://gravatar.com/avatar/676212ff796c79a3c06261eb10e3f455aa93998ee6e45263da13679c74b1e674?s=42&d=retro&r=g',
);
});

Expand All @@ -20,7 +20,7 @@ test('should create user, all fields', () => {
expect(user.username).toBe('admin');
expect(user.email).toBe('[email protected]');
expect(user.imageUrl).toBe(
'https://gravatar.com/avatar/d8ffeba65ee5baf57e4901690edc8e1b?size=42&default=retro',
'https://gravatar.com/avatar/676212ff796c79a3c06261eb10e3f455aa93998ee6e45263da13679c74b1e674?s=42&d=retro&r=g',
);
});

Expand All @@ -47,7 +47,7 @@ test('Should create user with only username defined', () => {
const user = new User({ id: 133, username: 'some-user' });
expect(user.username).toBe('some-user');
expect(user.imageUrl).toBe(
'https://gravatar.com/avatar/140fd5a002fb8d728a9848f8c9fcea2a?size=42&default=retro',
'https://gravatar.com/avatar/7e90ac329986624ba9929659913354473c6f965d5b559704409e3f933c0643b7?s=42&d=retro&r=g',
);
});

Expand Down

0 comments on commit c681aa8

Please sign in to comment.