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 69026c9 commit a137519
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 @@ -152,7 +152,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 a137519

Please sign in to comment.