Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhoffman committed Mar 9, 2023
1 parent 8b894cd commit 54a6298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ObjectSchemaValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,15 +698,15 @@ public function testEmptyClosedShape(): void {
]);
$validator->validate();
expect($validator->isValid())->toBeTrue();
expect($validator->getValidatedInput())->toEqual(shape());
expect($validator->getValidatedInput())->toEqual(shape('empty_closed_shape' => shape()));

// Additional properties are discarded
$validator = new ObjectSchemaValidator(dict[
'empty_closed_shape' => dict['foo' => 'bar']
]);
$validator->validate();
expect($validator->isValid())->toBeTrue();
expect($validator->getValidatedInput())->toEqual(shape());
expect($validator->getValidatedInput())->toEqual(shape('empty_closed_shape' => shape()));
}

}

0 comments on commit 54a6298

Please sign in to comment.