Skip to content

Commit

Permalink
Return the key for add and put calls
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Nov 1, 2017
1 parent dab83ca commit 14d7864
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ const storage = {}; // Root storage.
const records = transaction._data[storeName].records;
records.set(key, value);

return key;
});
}

Expand Down

0 comments on commit 14d7864

Please sign in to comment.