Skip to content

Commit 7d8c054

Browse files
committed
update tests with simpler error message
1 parent 368fb26 commit 7d8c054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tailwindcss/src/css-parser.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,12 +1145,12 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
11451145
})
11461146

11471147
it('should error when consecutive semicolons exist', () => {
1148-
expect(() => parse(';;;')).toThrowErrorMatchingInlineSnapshot(`[Error: Unexpected: \`;;;\`]`)
1148+
expect(() => parse(';;;')).toThrowErrorMatchingInlineSnapshot(`[Error: Unexpected semicolon]`)
11491149
})
11501150

11511151
it('should error when consecutive semicolons exist after a declaration', () => {
11521152
expect(() => parse('.foo { color: red;;; }')).toThrowErrorMatchingInlineSnapshot(
1153-
`[Error: Unexpected: \`;;;\`]`,
1153+
`[Error: Unexpected semicolon]`,
11541154
)
11551155
})
11561156
})

0 commit comments

Comments
 (0)