1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-13 07:44:04 +00:00

Code review changes

Altered `::values()` to act like `::names()` for backed enums, code style fixes, general cleanups
This commit is contained in:
Samuel Levy 2022-03-15 07:06:53 +10:00
parent c2f0e7faf7
commit dea16e414c
5 changed files with 22 additions and 13 deletions

View file

@ -4,6 +4,6 @@ it('can return an array of case values from a backed enum')
->expect(Status::values())
->toBe([0, 1]);
it('can returns an empty array from a pure enum')
it('can return an array of case names from a pure enum')
->expect(Role::values())
->toBe([]);
->toBe(['ADMIN', 'GUEST']);