Skip to content

Commit

Permalink
(fix): typo in tests description
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbanaesteban committed Feb 1, 2021
1 parent 3fb8640 commit 23bd98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MastermindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
expect($mastermind->getCode())->toBe($code);
});

it('validates the given guess has 4 colors in order to create an instance', function () {
it('validates the given guess has 4 colors in order to get hints', function () {
Mastermind::withRandomCode()->getHints([
Color::BLUE, Color::YELLOW, Color::PINK
]);
})->throws(\InvalidArgumentException::class, 'The code should have a length of 4');

it('validates the given guess has only valid colors in order to create an instance', function () {
it('validates the given guess has only valid colors in order to get hints', function () {
Mastermind::withRandomCode()->getHints([
Color::BLUE, Color::YELLOW, 'ASD', Color::PINK
]);
Expand Down

0 comments on commit 23bd98b

Please sign in to comment.