We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af1274e commit 26ba403Copy full SHA for 26ba403
1 file changed
app/(root)/dashboard/[username]/page.test.tsx
@@ -134,5 +134,18 @@ describe('DashboardPage', () => {
134
expect(screen.getByText('Peak Streak: 15')).toBeDefined();
135
expect(screen.getByText('Contributions: 500')).toBeDefined();
136
});
137
+
138
+ it('calls getFullDashboardData with bypassCache: true when refresh param is set', async () => {
139
+ const PageContent = await DashboardPage({
140
+ params: Promise.resolve({ username: 'octocat' }),
141
+ searchParams: Promise.resolve({ refresh: 'true' }),
142
+ });
143
144
+ render(PageContent);
145
146
+ expect(getFullDashboardData).toHaveBeenCalledWith('octocat', {
147
+ bypassCache: true,
148
149
150
151
0 commit comments