Skip to content

Commit 98346f7

Browse files
committed
feat(factories): add default affiliateName and affiliateAvatarUrl
Add affiliateName and affiliateAvatarUrl properties to the affiliate-link factory in Mirage to provide default values for affiliate testing. This improves consistency in test data and simplifies test setup for components relying on affiliate details.
1 parent ad5c0b5 commit 98346f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mirage/factories/affiliate-link.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Factory } from 'miragejs';
22

33
export default Factory.extend({
4+
affiliateName: () => 'test',
5+
affiliateAvatarUrl: () => 'https://avatars.githubusercontent.com/u/1234567890?v=4',
46
url: () => `https://app.codecrafters.io/join?via=test`,
57
});

0 commit comments

Comments
 (0)