Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
azuradara committed Jul 13, 2024
1 parent dddfbc8 commit 6e96cd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Feature/FoggleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
expect($foggle->get('always-true', null))->toBeTrue();
});

it('considers undefined features false', function () {
expect(foggle()->get('non-existent-feature', null))->toBeFalse();
});

it('resolves with a context', function () {
foggle()->discover(
'Workbench\\App\\Features',
Expand Down

0 comments on commit 6e96cd4

Please sign in to comment.