We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 581a63d commit d58db07Copy full SHA for d58db07
1 file changed
app/api/streak/route.test.ts
@@ -127,6 +127,17 @@ describe('GET /api/streak', () => {
127
128
expect(fetchGitHubContributions).not.toHaveBeenCalled();
129
});
130
+
131
+ it('should return 200 OK and valid SVG when the optional repo query parameter is provided', async () => {
132
+ // 1. Make request with both parameters present
133
+ const response = await GET(makeRequest({ user: 'octocat', repo: 'commitpulse' }));
134
135
+ // 2. Assert definitions of done
136
+ expect(response.status).toBe(200);
137
138
+ const textOutput = await response.text();
139
+ expect(textOutput).toContain('<svg');
140
+ });
141
142
143
describe('successful response', () => {
0 commit comments