Skip to content

Commit

Permalink
fix tests for PascalCase
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Jan 28, 2024
1 parent fea911e commit 61ba793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Pest/OptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
->toBe('<option value="0">Foo bar</option>\n<option value="1">Bar baz</option>');

it('returns default HTML options from pure enums with pascal case')
->expect(PascalCaseEnum::stringOptions())
->toBe('<option value="FooBar">Foo bar</option>\n<option value="BarBaz">Bar baz</option>');

it('returns default HTML options from backed enums with pascal case')
->expect(BackedPascalCaseEnum::stringOptions())
->toBe('<option value="0">Foo bar</option>\n<option value="1">Bar baz</option>');

0 comments on commit 61ba793

Please sign in to comment.