Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Feb 19, 2024
1 parent 19ab2dc commit ba0f241
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/SettingsRepositories/DatabaseSettingsRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@
expect($this->repository->getPropertyPayload('test', 'e'))->toEqual(69);
});

it('can utilize custom encoders', function() {
config()->set('settings.encoder', fn($value) => str_rot13(json_encode($value)));
it('can utilize custom encoders', function () {
config()->set('settings.encoder', fn ($value) => str_rot13(json_encode($value)));

$this->repository->createProperty('test', 'a', 'Alpha');

expect(SettingsProperty::all()->first()->payload)->toEqual('"Nycun"');
});

it('can utilize custom decoders', function() {
config()->set('settings.decoder', fn($payload, $assoc) => json_decode(str_rot13($payload), $assoc));
it('can utilize custom decoders', function () {
config()->set('settings.decoder', fn ($payload, $assoc) => json_decode(str_rot13($payload), $assoc));

$this->repository->createProperty('test', 'a', 'Nycun');

Expand Down

0 comments on commit ba0f241

Please sign in to comment.