Skip to content

Commit

Permalink
Added test for edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
cmraible committed Jan 29, 2025
1 parent 5fb65f0 commit 685ccdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ghost/core/test/unit/shared/settings-cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ describe('UNIT: settings cache', function () {
should(cache.get('email_track_clicks', {resolve: false})).eql({value: false, override: true});
});

it('.get() only returns an override if the key is set to begin with', function () {
should(cache.get('email_track_clicks', {resolve: false})).eql(undefined);
});

it('.getAll() returns all values', function () {
cache.set('key1', {value: '1'});
cache.get('key1').should.eql('1');
Expand Down

0 comments on commit 685ccdd

Please sign in to comment.