Skip to content

Commit

Permalink
fix: makeFakeStoragKit: '' key deletes storage entry
Browse files Browse the repository at this point in the history
any falsy key, that is
  • Loading branch information
dckc committed Feb 4, 2025
1 parent db1feb3 commit dd649ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/internal/src/storage-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => {
/** @type {StorageEntry[]} */
const newEntries = message.args;
for (const [key, value] of newEntries) {
if (value != null) {
if (value) {
data.set(key, value);
} else {
data.delete(key);
Expand Down

0 comments on commit dd649ce

Please sign in to comment.