Skip to content

Commit 59c26da

Browse files
committed
up
1 parent e88eba9 commit 59c26da

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/e2e/badge.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ test.describe('badge API', () => {
139139
const { body } = await fetchBadge(page, url)
140140

141141
expect(body).toContain('fill="#000000">version')
142-
expect(body).toMatch(/fill="#000000">v\d/)
143142
})
144143

145144
test('3-char hex color is handled correctly for contrast', async ({ page, baseURL }) => {
@@ -158,7 +157,7 @@ test.describe('badge API', () => {
158157
const { body } = await fetchBadge(page, url)
159158

160159
expect(body).toMatch(/fill="#ffffff"(\stextLength="\d+")?>version/)
161-
expect(body).toMatch(/fill="#000000">v\d/)
160+
expect(body).toMatch(/fill="#000000"(\stextLength="\d+")?>v\d/)
162161
})
163162

164163
test('custom label parameter is applied to SVG', async ({ page, baseURL }) => {

0 commit comments

Comments
 (0)