Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski committed Mar 27, 2024
1 parent 0a411bc commit 9c68cca
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/constructs/__tests__/regex.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ test('`regex` no-op pattern', () => {
expect(regex(['a', 'b'])).toEqualRegex(/ab/);
expect([regex('a'), regex(['b', 'c'])]).toEqualRegex(/abc/);
});

test('`regex` throws on empty children', () => {
expect(() => regex([])).toThrowErrorMatchingInlineSnapshot(
`"\`regex\` should receive at least one element"`,
);
});

0 comments on commit 9c68cca

Please sign in to comment.