Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Mar 26, 2024
1 parent 39bf5be commit bd481cb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/JsonEntryFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
expect($field->getHasFoldingCode())->toBe(true);
});

it('can have folded code ', function () {
$field = JsonEntry::make('json');

expect($field->getHasFoldedCode())->toBe(false);

$field->foldedCode(false);
expect($field->getHasFoldedCode())->toBe(false);

$field->foldedCode(true);
expect($field->getHasFoldedCode())->toBe(true);
});

it('can have auto closing brackets code ', function () {
$field = JsonEntry::make('json');

Expand Down
12 changes: 12 additions & 0 deletions tests/JsonInputFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
expect($field->getHasFoldingCode())->toBe(true);
});

it('can have folded code ', function () {
$field = JsonInput::make('json');

expect($field->getHasFoldedCode())->toBe(false);

$field->foldedCode(false);
expect($field->getHasFoldedCode())->toBe(false);

$field->foldedCode(true);
expect($field->getHasFoldedCode())->toBe(true);
});

it('can have auto closing brackets code ', function () {
$field = JsonInput::make('json');

Expand Down

0 comments on commit bd481cb

Please sign in to comment.