Skip to content

Commit

Permalink
update tests with simpler error message
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jan 31, 2025
1 parent 06496c3 commit ddf7dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/css-parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,12 +1145,12 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
})

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

it('should error when consecutive semicolons exist after a declaration', () => {
expect(() => parse('.foo { color: red;;; }')).toThrowErrorMatchingInlineSnapshot(
`[Error: Unexpected: \`;;;\`]`,
`[Error: Unexpected semicolon]`,
)
})
})
Expand Down

0 comments on commit ddf7dfb

Please sign in to comment.