Skip to content

Commit 28d06db

Browse files
committed
fix: resolve formatting and font import test assertions
1 parent 60d3065 commit 28d06db

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/streak/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ describe('GET /api/streak', () => {
11811181
const body = await response.text();
11821182

11831183
expect(response.status).toBe(200);
1184-
expect(body).toContain('family=Inter&display=swap');
1184+
expect(body).toContain('family=Inter&display=swap');
11851185
expect(body).toContain('"Inter", sans-serif');
11861186
});
11871187
});

lib/svg/generator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ describe('generateSVG', () => {
486486
);
487487

488488
expect(svg).toContain(
489-
"@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');"
489+
"@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');"
490490
);
491491
expect(svg).toContain('font-family: "Inter", sans-serif;');
492492
});
@@ -946,7 +946,7 @@ describe('generateMonthlySVG', () => {
946946
} as unknown as BadgeParams);
947947

948948
expect(svg).toContain(
949-
"@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');"
949+
"@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');"
950950
);
951951
expect(svg).toContain('font-family: "Inter", sans-serif;');
952952
});

0 commit comments

Comments
 (0)