We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b64cab commit ceabe3bCopy full SHA for ceabe3b
1 file changed
app/api/streak/route.test.ts
@@ -140,6 +140,14 @@ describe('GET /api/streak', () => {
140
// The generator puts params.user.toUpperCase() in the SVG as the badge title.
141
expect(body).toContain('OCTOCAT');
142
});
143
+
144
+ it('should contain a <title> element with accessible label in the SVG response', async () => {
145
+ const response = await GET(makeRequest({ user: 'octocat' }));
146
+ const body = await response.text();
147
148
+ expect(body).toContain('<title>');
149
+ expect(body).toContain('Stats for');
150
+ });
151
152
153
describe('cache-control header', () => {
0 commit comments